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

index c1b0fec..b7eede0 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("products") >= 0)){
+    if ((window.location.href.indexOf("product-2") >= 0)){
         $("#gridView").css("display", "none");
         $("#listView").css("display", "none");
         $("#grid").on("click", function (e) {
@@ -35,7 +35,7 @@ $(document).ready(function () {
             location.reload();
         });
     }
-    if ((window.location.href.indexOf("products/?michsci_category") >= 0)){
+    if ((window.location.href.indexOf("products-2/?michsci_category") >= 0)){
         $("#productsView").css("display", "inherit");
         $("#categoriesView").css("display", "none");
         $("#gridView").css("display", "inherit");
@@ -58,7 +58,7 @@ $(document).ready(function () {
     }
   
     // change output view
-    if (!(window.location.href.indexOf("products/?pagename") >= 0)) {
+    if (!(window.location.href.indexOf("products-2/?pagename") >= 0)) {
     $("#grid").on("click", function (e) {
         document.cookie = "view=grid";
         location.reload();
@@ -71,6 +71,4 @@ $(document).ready(function () {
         $("#categoryDropdown").change(function() {
             $("#catSubmit").submit();
         });
-
-
 });
index 7f6bc85..31c439d 100644 (file)
@@ -51,6 +51,4 @@ $(document).ready(function () {
         $("#categoryDropdown").change(function() {
             $("#catSubmit").submit();
         });
-
-
 });