diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2013-02-03 18:48:30 -0500 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2013-02-03 18:55:23 -0500 |
| commit | 0494244e8068198707bf602199413cd216b0d515 (patch) | |
| tree | 59d31d59047c85c13a8061165a453f86aa501510 /modules/tag/views | |
| parent | dece6dc5a5880c6267431ba3299c5758b38662ee (diff) | |
Super first pass:
- jQuery 1.90
- jQuery UI 1.10
- Superfish 1.5.1 (minus all plugins)
- jQuery Form 3.26.0-2013.01.28
Deleted all other jQuery plugins for now.
- Reworked autocomplete to use the latest jQuery code.
- Deleted references to $.browser.msie, no longer supported
- Basic CSS support for autocomplete - lots more work needed there
Diffstat (limited to 'modules/tag/views')
| -rw-r--r-- | modules/tag/views/tag_block.html.php | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/modules/tag/views/tag_block.html.php b/modules/tag/views/tag_block.html.php index d25b8dcb..afa61b15 100644 --- a/modules/tag/views/tag_block.html.php +++ b/modules/tag/views/tag_block.html.php @@ -2,15 +2,13 @@ <script type="text/javascript"> $("#g-add-tag-form").ready(function() { var url = $("#g-tag-cloud-autocomplete-url").attr("href"); - $("#g-add-tag-form input:text").gallery_autocomplete( - url, { - max: 30, - multiple: true, - multipleSeparator: ',', - cacheLength: 1, - selectFirst: false - } - ); + function split(val) { + return val.split(/,\s*/); + } + function extract_last(term) { + return split(term).pop(); + } + $("#g-add-tag-form input:text").gallery_autocomplete(url, {multiple: true}); $("#g-add-tag-form").ajaxForm({ dataType: "json", success: function(data) { |
