added conditional to remove view icons per page
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 18 Dec 2015 19:33:44 +0000 (14:33 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 18 Dec 2015 19:33:44 +0000 (14:33 -0500)
js/app.js
js/custom/upcp.js

index 3d0b70d..186702b 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -21,6 +21,11 @@ $(document).ready(function () {
 ;/*global document, window, alert, console, require*/
 $(document).ready(function () {
     "use strict";
+    
+    if ((window.location.href.indexOf("products/?pagename") >= 0)) {
+        $("#viewBtns").css("display", "none");
+    }
+  
     $("#list").on("click", function (e) {
         document.cookie = "view=list";
         location.reload();
index 55ba6da..eec3de2 100644 (file)
@@ -1,6 +1,11 @@
 /*global document, window, alert, console, require*/
 $(document).ready(function () {
     "use strict";
+    
+    if ((window.location.href.indexOf("products/?pagename") >= 0)) {
+        $("#viewBtns").css("display", "none");
+    }
+  
     $("#list").on("click", function (e) {
         document.cookie = "view=list";
         location.reload();