added ids to match slugs
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 31 Dec 2015 15:58:49 +0000 (10:58 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 31 Dec 2015 15:58:49 +0000 (10:58 -0500)
js/app.js
js/custom/upcp.js

index ea329a2..3eab07a 100644 (file)
--- 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();
             });
         }  
     }  
index 1f7e172..def514c 100644 (file)
@@ -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();
             });
         }  
     }