|
@@ -87,13 +87,15 @@
|
|
|
// takes some time.
|
|
|
//
|
|
|
// @TODO: Figure out if this can be done without timeout, since it feels
|
|
|
// like race condition issue.
|
|
|
$(".search-option").blur(function(){
|
|
|
setTimeout(function() {
|
|
|
if ($(document.activeElement).attr('class') != "search") {
|
|
|
var focusedElement = $(document.activeElement);
|
|
|
|
|
|
if ( focusedElement.attr('id') != "search" && focusedElement.attr('class') != "search-option") {
|
|
|
$("#search-suggestions").fadeOut(200);
|
|
|
}
|
|
|
}, 10);
|
|
|
});
|
|
|
} else {
|
|
|
// No search results were returned (nothing matched).
|