fixing syntax error
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 22 Dec 2015 21:18:21 +0000 (16:18 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 22 Dec 2015 21:18:21 +0000 (16:18 -0500)
js/app.js
js/custom/upcp.js

index b7eede0..ed47b90 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -23,7 +23,7 @@ $(document).ready(function () {
     "use strict";
     
     // don't display products on the main "products page"
-    if ((window.location.href.indexOf("product-2") >= 0)){
+    if ((window.location.href.indexOf("products-2") >= 0)){
         $("#gridView").css("display", "none");
         $("#listView").css("display", "none");
         $("#grid").on("click", function (e) {
index 31c439d..cd8b62d 100644 (file)
@@ -3,7 +3,7 @@ $(document).ready(function () {
     "use strict";
     
     // don't display products on the main "products page"
-    if ((window.location.href.indexOf("product-2") >= 0)){
+    if ((window.location.href.indexOf("products-2") >= 0)){
         $("#gridView").css("display", "none");
         $("#listView").css("display", "none");
         $("#grid").on("click", function (e) {