From: Anthony Talarico Date: Thu, 31 Dec 2015 15:58:49 +0000 (-0500) Subject: added ids to match slugs X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=2d3986a55b1a641ece7a073ebdca27defb803469;p=WP-Themes%2Fmichsci.git added ids to match slugs --- diff --git a/js/app.js b/js/app.js index ea329a2..3eab07a 100644 --- a/js/app.js +++ b/js/app.js @@ -118,9 +118,10 @@ $(document).ready(function () { var link; $('#tags a').click(function() { - link = $(this).text(); + link = $(this).attr('id'); createCookie("link", link); }); + // get value of clicked tag ///////////////////// function getCookie(cname) { var name = cname + "="; @@ -143,8 +144,7 @@ $(document).ready(function () { $("#categoriesGridView").hide(); $("#categoriesListView").hide() $("#tagBox :checkbox:checked").each(function() { - $("." + $(this).val()).show(); - console.log($(this).val()); + $("." + $(this).attr("id")).show(); }); } } diff --git a/js/custom/upcp.js b/js/custom/upcp.js index 1f7e172..def514c 100644 --- a/js/custom/upcp.js +++ b/js/custom/upcp.js @@ -98,9 +98,10 @@ $(document).ready(function () { var link; $('#tags a').click(function() { - link = $(this).text(); + link = $(this).attr('id'); createCookie("link", link); }); + // get value of clicked tag ///////////////////// function getCookie(cname) { var name = cname + "="; @@ -123,8 +124,7 @@ $(document).ready(function () { $("#categoriesGridView").hide(); $("#categoriesListView").hide() $("#tagBox :checkbox:checked").each(function() { - $("." + $(this).val()).show(); - console.log($(this).val()); + $("." + $(this).attr("id")).show(); }); } }