VRFS-389 reset search results before each search

This commit is contained in:
Brian Smith 2013-06-24 20:09:30 -04:00
parent 1886f33bc1
commit 706ff66380
1 changed files with 3 additions and 3 deletions

View File

@ -166,6 +166,7 @@
function search(query) {
logger.debug('query=' + query);
$('#sidebar-search-results').empty();
if (query !== '') {
context.JK.search(query, app, onSearchSuccess);
}
@ -346,7 +347,7 @@
return hideSearchResults();
}
if (query !== '' && query.length > 2) {
if (query.length > 2) {
emptySearchResults();
search(query);
}
@ -358,8 +359,7 @@
});
$('#sidebar-div').mouseleave(function(evt) {
logger.debug("onblur executing");
return hideSearchResults();
hideSearchResults();
});
// wire up FRIEND_UPDATE handler