aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/_global/js/autoCompleteTags.js
diff options
context:
space:
mode:
Diffstat (limited to 'themes/_global/js/autoCompleteTags.js')
-rwxr-xr-xthemes/_global/js/autoCompleteTags.js3
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);