summaryrefslogtreecommitdiff
path: root/modules/tag/helpers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-07-27 18:04:55 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-07-27 18:04:55 -0700
commit4b6775e614040e91fce8a142f840d44258713a85 (patch)
tree5d49b1643c725cca36eb80c88fad4e50e3986e2f /modules/tag/helpers
parenta4c807232abaa4edd501ad5f4d7f06dac64f7ff8 (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.
Diffstat (limited to 'modules/tag/helpers')
-rw-r--r--modules/tag/helpers/tag_event.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/tag/helpers/tag_event.php b/modules/tag/helpers/tag_event.php
index 7becf36f..0cb49ffa 100644
--- a/modules/tag/helpers/tag_event.php
+++ b/modules/tag/helpers/tag_event.php
@@ -68,7 +68,11 @@ class tag_event_Core {
$url = url::site("tags/autocomplete");
$view->script[] = "$('#gEditFormContainer form').ready(function() {
$('#gEditFormContainer form input[id=tags]').autocomplete(
- '$url', {max: 30, formatResult: formatTagAutoCompleteResult}
+ '$url',
+ {max: 30,
+ multiple: true,
+ multipleSeparator: ',',
+ cacheLength: 1}
);
});";
$tag_value = implode(", ", tag::item_tags($item));