From: Anthony Talarico Date: Wed, 13 Jan 2016 15:30:41 +0000 (-0500) Subject: testing display of categories view X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=6d72030d39658a6497ce5165ef84ab1ea1384133;p=WP-Themes%2Fmichsci.git testing display of categories view --- diff --git a/js/app.js b/js/app.js index 22cdc74..52c3e25 100644 --- a/js/app.js +++ b/js/app.js @@ -24,7 +24,7 @@ $(document).ready(function () { function createCookie(name, value) { var date = new Date(); - date.setTime(date.getTime()+(5*1000)); + date.setTime(date.getTime()+(3*1000)); var expires = "; expires="+date.toGMTString(); document.cookie = name+"="+value+expires+"; path=/"; } @@ -34,8 +34,8 @@ $(document).ready(function () { // don't display products on the main "products page" if ((window.location.href.indexOf("products-2") >= 0)){ -// $("#gridView").css("display", "none"); -// $("#listView").css("display", "none"); + $("#gridView").css("display", "none"); + $("#listView").css("display", "none"); $("#grid").on("click", function (e) { document.cookie = "catView=grid"; location.reload(); diff --git a/js/custom/upcp.js b/js/custom/upcp.js index abdbb2d..6adbedb 100644 --- a/js/custom/upcp.js +++ b/js/custom/upcp.js @@ -4,7 +4,7 @@ $(document).ready(function () { function createCookie(name, value) { var date = new Date(); - date.setTime(date.getTime()+(5*1000)); + date.setTime(date.getTime()+(3*1000)); var expires = "; expires="+date.toGMTString(); document.cookie = name+"="+value+expires+"; path=/"; } @@ -14,8 +14,8 @@ $(document).ready(function () { // don't display products on the main "products page" if ((window.location.href.indexOf("products-2") >= 0)){ -// $("#gridView").css("display", "none"); -// $("#listView").css("display", "none"); + $("#gridView").css("display", "none"); + $("#listView").css("display", "none"); $("#grid").on("click", function (e) { document.cookie = "catView=grid"; location.reload();