mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-10 09:33:44 +01:00
Show autocomplete on multichoice_selector focus
This commit is contained in:
parent
968fd29bad
commit
48ebc751e4
@ -54,6 +54,13 @@
|
|||||||
input.val("");
|
input.val("");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}).focus(function() {
|
||||||
|
// The following works only once.
|
||||||
|
// $(this).trigger('keydown.autocomplete');
|
||||||
|
// As suggested by digitalPBK, works multiple times
|
||||||
|
// $(this).data("autocomplete").search($(this).val());
|
||||||
|
// As noted by Jonny in his answer, with newer versions use uiAutocomplete
|
||||||
|
$(this).data("ui-autocomplete").search($(this).val());
|
||||||
});
|
});
|
||||||
|
|
||||||
input.data('ui-autocomplete')._renderItem = function(ul, item) {
|
input.data('ui-autocomplete')._renderItem = function(ul, item) {
|
||||||
|
Loading…
Reference in New Issue
Block a user