well, the loading icon mostly works now too

This commit is contained in:
Devin Howard 2016-02-05 20:09:00 +08:00
parent 5f90843da2
commit 6b9aa52224

View file

@ -607,11 +607,10 @@ Metamaps.GlobalUI.Search = {
}); });
// make sure that when you click on 'limit to me' or 'toggle section' it works // make sure that when you click on 'limit to me' or 'toggle section' it works
$('.sidebarSearchField').bind('typeahead:change', function(){ $('.sidebarSearchField.tt-input').keyup(function(){
if ($('.sidebarSearchField.tt-input').val() === '') { if ($('.sidebarSearchField.tt-input').val() === '') {
self.hideLoader(); self.hideLoader();
} } else {
else {
self.showLoader(); self.showLoader();
} }
}); });