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:
		| @@ -453,6 +453,7 @@ window.setupSidebarToggle = function() { | ||||
|       toggle.html('<span class="toggle close"></span>'); | ||||
|       toggle.css('right', SIDEBAR_WIDTH+1+'px'); | ||||
|     } | ||||
|     $('.ui-tooltip').remove(); | ||||
|   }); | ||||
| } | ||||
|  | ||||
| @@ -463,6 +464,7 @@ window.setupTooltips = function(element) { | ||||
|     show: { effect: "hide", duration: 0 } , | ||||
|     hide: false, | ||||
|     open: function(event, ui) { | ||||
|       $(".ui-tooltip").not(ui.tooltip).remove(); | ||||
|       ui.tooltip.delay(300).fadeIn(0); | ||||
|     }, | ||||
|     content: function() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user