summaryrefslogtreecommitdiff
path: root/modules/tag/views
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-07-28 09:04:55 +0800
committerTim Almdal <tnalmdal@shaw.ca>2009-07-28 09:16:57 +0800
commit975a5ded7b6cc11ce55f2a9bbaa43d4897687b37 (patch)
tree39bea5bb5ebd9fc672755df6791bdeb92962d161 /modules/tag/views
parentecc9203c2352bdfa3738998f27268293345ec0e9 (diff)
Clean up amd simplify the tag processing: Only allow comma separators between
phrases. Using only 1 separator cleans up the javascript as well, as we can use some of the jquery autocomplete to set the tag separator. Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
Diffstat (limited to 'modules/tag/views')
-rw-r--r--modules/tag/views/tag_block.html.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/tag/views/tag_block.html.php b/modules/tag/views/tag_block.html.php
index 233eb361..59a4ef88 100644
--- a/modules/tag/views/tag_block.html.php
+++ b/modules/tag/views/tag_block.html.php
@@ -5,7 +5,9 @@
$("#gAddTagForm input:text").autocomplete(
url, {
max: 30,
- formatResult: formatTagAutoCompleteResult}
+ multiple: true,
+ multipleSeparator: ',',
+ cacheLength: 1}
);
});
</script>