* ditch jQueryUI vanilla styles in favor of own ones.
* disable tracking for tooltips and make them behave more like regular ones (this also stops my fan from spinning up when using the intel map) Improvements welcome. Tooltips are currently placed at the bottom of the element instead of next to cursor. It seems it’s either tracking or placing it not anywhere where one would expect a tooltip. I immediately regret having chosen jQueryUI. It’s not very flexible and has awkward defaults.
This commit is contained in:
@ -191,11 +191,12 @@ window.setupSidebarToggle = function() {
|
||||
|
||||
window.setupTooltips = function() {
|
||||
$(document).tooltip({
|
||||
// enable mouse tracking
|
||||
track: true,
|
||||
// disable show/hide animation
|
||||
show: false,
|
||||
show: { effect: "hide", duration: 0 } ,
|
||||
hide: false,
|
||||
open: function(event, ui) {
|
||||
ui.tooltip.delay(300).fadeIn(0);
|
||||
},
|
||||
content: function() {
|
||||
var title = $(this).attr('title');
|
||||
|
||||
|
Reference in New Issue
Block a user