tooltip tweaks - slightly cleaner this way, i think
This commit is contained in:
parent
54a6861aef
commit
b6c89c9575
@ -461,11 +461,11 @@ window.setupTooltips = function(element) {
|
|||||||
element = element || $(document);
|
element = element || $(document);
|
||||||
element.tooltip({
|
element.tooltip({
|
||||||
// disable show/hide animation
|
// disable show/hide animation
|
||||||
show: { effect: "hide", duration: 0 } ,
|
show: { effect: 'none', duration: 0, delay: 350 },
|
||||||
hide: false,
|
hide: false,
|
||||||
open: function(event, ui) {
|
open: function(event, ui) {
|
||||||
|
// ensure all other tooltips are closed
|
||||||
$(".ui-tooltip").not(ui.tooltip).remove();
|
$(".ui-tooltip").not(ui.tooltip).remove();
|
||||||
ui.tooltip.delay(300).fadeIn(0);
|
|
||||||
},
|
},
|
||||||
content: function() {
|
content: function() {
|
||||||
var title = $(this).attr('title');
|
var title = $(this).attr('title');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user