File diff 8fe010d0a605 → 555163555332
conntrackt/static/conntrackt.js
Show inline comments
 
@@ -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).