diff options
author | Thomas Citharel <tcit@tcit.fr> | 2015-03-08 14:47:22 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2015-03-08 14:47:22 +0100 |
commit | ab87a7fe6934b5fa0f06964c67a27826774126b4 (patch) | |
tree | e8f20b190b69ff47276731446544d98ac8c84dea /themes/_global | |
parent | 512ff18015919bf3119509d1a8b8cf87b3b86f5f (diff) | |
download | wallabag-ab87a7fe6934b5fa0f06964c67a27826774126b4.tar.gz wallabag-ab87a7fe6934b5fa0f06964c67a27826774126b4.tar.zst wallabag-ab87a7fe6934b5fa0f06964c67a27826774126b4.zip |
tag cloud is present, #1122 is implemented
Diffstat (limited to 'themes/_global')
-rwxr-xr-x | themes/_global/js/autoCompleteTags.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/themes/_global/js/autoCompleteTags.js b/themes/_global/js/autoCompleteTags.js index 986e71d1..8b32f8ca 100755 --- a/themes/_global/js/autoCompleteTags.js +++ b/themes/_global/js/autoCompleteTags.js | |||
@@ -48,6 +48,9 @@ jQuery(function($) { | |||
48 | var value = input.val(); | 48 | var value = input.val(); |
49 | var tag = $(this).text(); | 49 | var tag = $(this).text(); |
50 | var terms = value.split(','); // tags into the <input> | 50 | var terms = value.split(','); // tags into the <input> |
51 | $(".alreadytagged").each(function(index) { | ||
52 | terms.push($(this).text() ); | ||
53 | }); | ||
51 | if (jQuery.inArray(tag, terms) == -1 ) { // if the tag hasn't already been added | 54 | if (jQuery.inArray(tag, terms) == -1 ) { // if the tag hasn't already been added |
52 | value += tag + ","; | 55 | value += tag + ","; |
53 | input.val(value); | 56 | input.val(value); |