MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
m (Fix .hover-link handler) |
m (Add qtip2) |
||
Line 19: | Line 19: | ||
}); | }); | ||
$('[title!=""]').qtip(); | |||
}); | }); |
Revision as of 13:59, March 28, 2016
$(document).ready(function(){ $('span.hover-link').hover(function(e){ var classes = $(this).attr("class").split(/\s+/); for (var i=0; i<classes.length; i++) { if (classes[i].indexOf("link-") != -1) { if (e.type == "mouseenter") { $("span."+classes[i]).addClass("hover"); } else if (e.type == "mouseleave") { $("span."+classes[i]).removeClass("hover"); } } } }); $('[title!=""]').qtip(); });