mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-12-23 03:18:55 +00:00
Update default options
This commit is contained in:
parent
196fa6b0c0
commit
a53b1cd759
@ -51,18 +51,20 @@
|
|||||||
function Autocomplete(el, options) {
|
function Autocomplete(el, options) {
|
||||||
var that = this,
|
var that = this,
|
||||||
defaults = {
|
defaults = {
|
||||||
|
serviceUrl: null,
|
||||||
|
lookup: null,
|
||||||
|
onSelect: null,
|
||||||
|
width: 'auto',
|
||||||
minChars: 1,
|
minChars: 1,
|
||||||
maxHeight: 300,
|
maxHeight: 300,
|
||||||
deferRequestBy: 0,
|
deferRequestBy: 0,
|
||||||
width: 0,
|
|
||||||
highlight: true,
|
|
||||||
params: {},
|
params: {},
|
||||||
formatResult: Autocomplete.formatResult,
|
formatResult: Autocomplete.formatResult,
|
||||||
delimiter: null,
|
delimiter: null,
|
||||||
zIndex: 9999,
|
zIndex: 9999,
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
noCache: false,
|
noCache: false,
|
||||||
enforce: false
|
enforce: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Shared variables:
|
// Shared variables:
|
||||||
@ -175,7 +177,7 @@
|
|||||||
// Adjust height, width and z-index:
|
// Adjust height, width and z-index:
|
||||||
$(this.suggestionsContainer).css({
|
$(this.suggestionsContainer).css({
|
||||||
'max-height': options.maxHeight + 'px',
|
'max-height': options.maxHeight + 'px',
|
||||||
'width': options.width,
|
'width': options.width + 'px',
|
||||||
'z-index': options.zIndex
|
'z-index': options.zIndex
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user