From d8adbef18dc61d6d7aaedb1a41b3f21609a92d4a Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 13 Jan 2016 15:22:39 -0500 Subject: [PATCH] removing categories from display in appearance menu dropdown pages --- js/app.js | 2 ++ js/custom/upcp.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/js/app.js b/js/app.js index 8107911..e8835ad 100644 --- a/js/app.js +++ b/js/app.js @@ -157,6 +157,8 @@ $(document).ready(function () { if($("#tagBox :checkbox:checked").length === 0 && window.location.href.indexOf("products-3/") >= 0){ // $("#categoriesGridView").show(); // $("#categoriesListView").show(); + $("#categoriesGridView").hide(); + $("#categoriesListView").hide(); $("#gridView").css("display", "inherit"); $("#listView").css("display", "none"); $(".product").show(); diff --git a/js/custom/upcp.js b/js/custom/upcp.js index d58bc3a..19ddeb3 100644 --- a/js/custom/upcp.js +++ b/js/custom/upcp.js @@ -137,6 +137,8 @@ $(document).ready(function () { if($("#tagBox :checkbox:checked").length === 0 && window.location.href.indexOf("products-3/") >= 0){ // $("#categoriesGridView").show(); // $("#categoriesListView").show(); + $("#categoriesGridView").hide(); + $("#categoriesListView").hide(); $("#gridView").css("display", "inherit"); $("#listView").css("display", "none"); $(".product").show(); -- 2.17.1