From a7cb93c810b7ba7e4465164b318b1e5077390a1f Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 19 Jan 2016 15:06:58 -0500 Subject: [PATCH] reverting changes --- js/app.js | 9 ++------- js/custom/upcp.js | 9 ++------- 2 files changed, 4 insertions(+), 14 deletions(-) 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(); -- 2.17.1