From 4b2ec23f062c3153a38a3e2c463be105645d576b Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 21 Dec 2015 11:02:35 -0500 Subject: [PATCH] adding pathname to window,location on grid click --- js/app.js | 4 ++-- js/custom/upcp.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/app.js b/js/app.js index 9a1c1a2..74ba970 100644 --- a/js/app.js +++ b/js/app.js @@ -24,8 +24,8 @@ $(document).ready(function () { if ((window.location.href.indexOf("products-2/?pagename") >= 0)) { // $("#viewBtns").css("display", "none"); - $("#grid").on("click", function (e) { - + $("#grid").on("click", function () { + window.location.href = window.location.pathname; }); } diff --git a/js/custom/upcp.js b/js/custom/upcp.js index 33e703f..40ff23a 100644 --- a/js/custom/upcp.js +++ b/js/custom/upcp.js @@ -4,8 +4,8 @@ $(document).ready(function () { if ((window.location.href.indexOf("products-2/?pagename") >= 0)) { // $("#viewBtns").css("display", "none"); - $("#grid").on("click", function (e) { - + $("#grid").on("click", function () { + window.location.href = window.location.pathname; }); } -- 2.17.1