added some comments
This commit is contained in:
parent
3f76d6c7a6
commit
59371e09a3
@ -48,7 +48,17 @@ window.plugin.guessPlayerLevels.setLevelTitle = function(dom) {
|
|||||||
text = 'Min player level unknown';
|
text = 'Min player level unknown';
|
||||||
}
|
}
|
||||||
window.setupTooltips(el);
|
window.setupTooltips(el);
|
||||||
el.addClass('help').attr('title', text).tooltip('open').attr('title', null);
|
|
||||||
|
/*
|
||||||
|
This code looks hacky but since we are a little late within the mouseenter so
|
||||||
|
we need to improvise a little. The open method doesn't open the tooltip directly.
|
||||||
|
It starts the whole opening procedure (including the timeout etc) and is normally
|
||||||
|
started by the mousemove event of the enhanced element.
|
||||||
|
*/
|
||||||
|
el.addClass('help') // Add the "Help Mouse Cursor"
|
||||||
|
.attr('title', text) // Set the title for the jquery tooltip
|
||||||
|
.tooltip('open') // Start the "open" method
|
||||||
|
.attr('title', null); // And remove the title to prevent the browsers tooltip
|
||||||
}
|
}
|
||||||
|
|
||||||
window.plugin.guessPlayerLevels.setupChatNickHelper = function() {
|
window.plugin.guessPlayerLevels.setupChatNickHelper = function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user