System Operators, Wiki Team
278
edits
Alexkar598 (talk | contribs) (Fixes tooltips on firefox for real now) |
Alexkar598 (talk | contribs) (Use a fixed timer instead because waiting for the next animation frame does not work) |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
if($(".tooltip").length) { | if($(".tooltip").length) { | ||
document.styleSheets[0].insertRule(".tooltiptext {top:0}"); | document.styleSheets[0].insertRule(".tooltiptext {top:0}"); | ||
document.styleSheets[0].deleteRule(0); | window.setTimeout(function() { | ||
document.styleSheets[0].deleteRule(0); | |||
}, 500) | |||
} | } |