various autocomplete tweaks
* made limit for /api/internal/tag_list/complete optional (as this breaks the autocomplete on dbs with lots of tags) * removed delay + minChars = 1 again (due to above change) * first autocomplete tag is selected by default * tab now works as a select button * autocompleted tags will now be followed by a space (so the next tag can be instantly autocompleted)
This commit is contained in:
@ -8,16 +8,20 @@ $(document).ready(function() {
|
||||
//TODO: Possibly move to using TextExtJS for autocomplete? - http://textextjs.com/
|
||||
// Also use autocomplete in tag box?
|
||||
$('.autocomplete_tags').autocomplete(base_href + '/api/internal/tag_list/complete', {
|
||||
width: 320,
|
||||
max: 10,
|
||||
highlight: false,
|
||||
multiple: true,
|
||||
multipleSeparator: ' ',
|
||||
scroll: true,
|
||||
scrollHeight: 300,
|
||||
selectFirst: false,
|
||||
//extraParams: {limit: 10},
|
||||
queryParamName: 's',
|
||||
delay: 150
|
||||
minChars: 1,
|
||||
delay: 0,
|
||||
useCache: true,
|
||||
maxCacheLength: 10,
|
||||
matchInside: false,
|
||||
selectFirst: true,
|
||||
selectOnly: false,
|
||||
preventDefaultReturn: 1,
|
||||
preventDefaultTab: 1,
|
||||
useDelimiter: true,
|
||||
delimiterChar : " ",
|
||||
delimiterKeyCode : 48
|
||||
});
|
||||
|
||||
$("TABLE.sortable").tablesorter();
|
||||
|
Reference in New Issue
Block a user