From 2d3986a55b1a641ece7a073ebdca27defb803469 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 31 Dec 2015 10:58:49 -0500 Subject: [PATCH] added ids to match slugs --- js/app.js | 6 +++--- js/custom/upcp.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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(); }); } } -- 2.17.1