diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-27 18:04:55 -0700 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-27 18:04:55 -0700 |
| commit | 4b6775e614040e91fce8a142f840d44258713a85 (patch) | |
| tree | 5d49b1643c725cca36eb80c88fad4e50e3986e2f /modules/tag/helpers | |
| parent | a4c807232abaa4edd501ad5f4d7f06dac64f7ff8 (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.php | 6 |
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)); |
