diff options
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/editbookmark.tpl.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/data/templates/editbookmark.tpl.php b/data/templates/editbookmark.tpl.php index 69d3897..1783692 100644 --- a/data/templates/editbookmark.tpl.php +++ b/data/templates/editbookmark.tpl.php @@ -154,6 +154,10 @@ jQuery(document).ready(function() { source: function(request, response) { // delegate back to autocomplete, but extract the last term + var term = extractLast(request.term); + if (term.length < this.options.minLength) { + return; + } response( /* $.ui.autocomplete.filter( @@ -162,7 +166,7 @@ jQuery(document).ready(function() { */ $.getJSON( "<?php echo $ajaxUrl; ?>", - { beginsWith: extractLast(request.term) }, + { beginsWith: term }, response ) ); |