|
@ -144,7 +144,16 @@ $.fn.search = function(parameters) { |
|
|
event: { |
|
|
event: { |
|
|
input: function() { |
|
|
input: function() { |
|
|
clearTimeout(module.timer); |
|
|
clearTimeout(module.timer); |
|
|
module.timer = setTimeout(module.query, settings.searchDelay); |
|
|
|
|
|
|
|
|
if(settings.searchDelay) { |
|
|
|
|
|
module.timer = setTimeout(function() { |
|
|
|
|
|
if(module.is.focused()) { |
|
|
|
|
|
module.query(); |
|
|
|
|
|
} |
|
|
|
|
|
}, settings.searchDelay); |
|
|
|
|
|
} |
|
|
|
|
|
else { |
|
|
|
|
|
module.query(); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
focus: function() { |
|
|
focus: function() { |
|
|
module.set.focus(); |
|
|
module.set.focus(); |
|
|