better tooltip handling

- search: remove tooltip from DOM immediately instead of setting up a new instance (which would have other options)
- sidebar toggle: remove tooltip upon click, tooltip might persist otherwise
- close other tooltips before opening a new one
This commit is contained in:
fkloft
2015-02-23 13:18:22 +01:00
parent 7987a459eb
commit 93f0b8b572
2 changed files with 3 additions and 1 deletions

View File

@ -190,7 +190,7 @@ window.search.doSearch = function(term, confirmed) {
if(useAndroidPanes()) show('info');
$('#search').tooltip().tooltip('close');
$('.ui-tooltip').remove();
window.search.lastSearch = new window.search.Query(term, confirmed);
window.search.lastSearch.show();