removing categories from display in appearance menu dropdown pages
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 13 Jan 2016 20:22:39 +0000 (15:22 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 13 Jan 2016 20:22:39 +0000 (15:22 -0500)
js/app.js
js/custom/upcp.js

index 8107911..e8835ad 100644 (file)
--- 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();
index d58bc3a..19ddeb3 100644 (file)
@@ -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();