From: Anthony Talarico Date: Tue, 19 Jan 2016 20:06:58 +0000 (-0500) Subject: reverting changes X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=a7cb93c810b7ba7e4465164b318b1e5077390a1f;p=WP-Themes%2Fmichsci.git reverting changes --- diff --git a/js/app.js b/js/app.js index bd27fdd..9adcfac 100644 --- a/js/app.js +++ b/js/app.js @@ -232,15 +232,10 @@ $(document).ready(function () { $("#blog-side-info-wrapper").css("display", "none"); } $(".top-bar").find(".menu-item").find(".sub-menu.dropdown").find(".menu-item").on("click", function () { -// createCookieSubcat("subcat", "subcat"); - document.cookie="subcat=subcat"; + createCookieSubcat("subcat", "subcat"); }); - $("#menu-item-318").children("a").attr("id", "test"); - $("#test").on("click", function (){ -// createCookieSubcat("subcat", "null"); - document.cookie="subcat=null"; - }); + if ((window.location.href.indexOf("/?michsci_category") >= 0) || (window.location.href.indexOf("/?pagename") >= 0) ){ var $bottomText = $("#catelog-content").nextAll(); var $bottomText2 = $("#categoriesGridView").nextAll(); diff --git a/js/custom/upcp.js b/js/custom/upcp.js index e4711fe..775fd1f 100644 --- a/js/custom/upcp.js +++ b/js/custom/upcp.js @@ -212,15 +212,10 @@ $(document).ready(function () { $("#blog-side-info-wrapper").css("display", "none"); } $(".top-bar").find(".menu-item").find(".sub-menu.dropdown").find(".menu-item").on("click", function () { -// createCookieSubcat("subcat", "subcat"); - document.cookie="subcat=subcat"; + createCookieSubcat("subcat", "subcat"); }); - $("#menu-item-318").children("a").attr("id", "test"); - $("#test").on("click", function (){ -// createCookieSubcat("subcat", "null"); - document.cookie="subcat=null"; - }); + if ((window.location.href.indexOf("/?michsci_category") >= 0) || (window.location.href.indexOf("/?pagename") >= 0) ){ var $bottomText = $("#catelog-content").nextAll(); var $bottomText2 = $("#categoriesGridView").nextAll();