From ca750e4d6bdbd2d17a9992f5ffe353cc1d669539 Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Fri, 29 Jun 2012 14:36:37 +0200 Subject: [PATCH] Fix in list tag filtering --- js/bookmarks.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/js/bookmarks.js b/js/bookmarks.js index 3bfceac4..4d550f5f 100644 --- a/js/bookmarks.js +++ b/js/bookmarks.js @@ -146,20 +146,12 @@ function editBookmark(event) { createEditDialog(bookmark); } -function replaceQueryString(url,param,value) { - var re = new RegExp("([?|&])" + param + "=.*?(&|$)","i"); - if (url.match(re)) - return url.replace(re,'$1' + param + "=" + value + '$2'); - else - return url + '&' + param + "=" + value; -} - function updateBookmarksList(bookmark) { var tags = bookmark.tags; var taglist = ''; for ( var i=0, len=tags.length; i' + encodeEntities(tags[i]) + ' '; + taglist = taglist + '' + encodeEntities(tags[i]) + ' '; } if(!hasProtocol(bookmark.url)) { bookmark.url = 'http://' + bookmark.url; @@ -185,6 +177,8 @@ function updateBookmarksList(bookmark) { if(taglist != '') { $('div[data-id="'+ bookmark.id +'"]').append('

' + taglist + '

'); } + $('div[data-id="'+ bookmark.id +'"] a.bookmark_tag').bind('click', addFilterTag); + } function updateOnBottom() {