|
@ -117,11 +117,12 @@ $.fn.search = function(parameters) { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
blur: function(event) { |
|
|
blur: function(event) { |
|
|
module.cancel(); |
|
|
|
|
|
$module |
|
|
|
|
|
.removeClass(className.focus) |
|
|
|
|
|
|
|
|
var |
|
|
|
|
|
pageLostFocus = (document.activeElement === this) |
|
|
; |
|
|
; |
|
|
if(!module.resultsClicked) { |
|
|
|
|
|
|
|
|
if(!pageLostFocus && !module.resultsClicked) { |
|
|
|
|
|
module.cancel(); |
|
|
|
|
|
$module.removeClass(className.focus); |
|
|
module.timer = setTimeout(module.hideResults, settings.hideDelay); |
|
|
module.timer = setTimeout(module.hideResults, settings.hideDelay); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -262,7 +263,6 @@ $.fn.search = function(parameters) { |
|
|
apiSettings = { |
|
|
apiSettings = { |
|
|
on : false, |
|
|
on : false, |
|
|
action : 'search', |
|
|
action : 'search', |
|
|
debug : settings.debug, |
|
|
|
|
|
onFailure : module.error |
|
|
onFailure : module.error |
|
|
}, |
|
|
}, |
|
|
searchHTML |
|
|
searchHTML |
|
@ -714,7 +714,7 @@ $.fn.search.settings = { |
|
|
name : 'Search Module', |
|
|
name : 'Search Module', |
|
|
namespace : 'search', |
|
|
namespace : 'search', |
|
|
|
|
|
|
|
|
debug : true, |
|
|
|
|
|
|
|
|
debug : false, |
|
|
verbose : true, |
|
|
verbose : true, |
|
|
performance : true, |
|
|
performance : true, |
|
|
|
|
|
|
|
|