jquery update (i expect) broke $(window).on - $(document).on works instead
also changed guess player levels plugin from using jquery .delegate to .on - as the former is deprecated
This commit is contained in:
parent
3e18e5bea1
commit
e321b06875
@ -613,7 +613,7 @@ window.chat.setup = function() {
|
|||||||
var cls = PLAYER.team === 'ALIENS' ? 'enl' : 'res';
|
var cls = PLAYER.team === 'ALIENS' ? 'enl' : 'res';
|
||||||
$('#chatinput mark').addClass(cls);
|
$('#chatinput mark').addClass(cls);
|
||||||
|
|
||||||
$(window).on('click', '.nickname', function(event) {
|
$(document).on('click', '.nickname', function(event) {
|
||||||
window.chat.nicknameClicked(event, $(this).text());
|
window.chat.nicknameClicked(event, $(this).text());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// @id iitc-plugin-guess-player-levels@breunigs
|
// @id iitc-plugin-guess-player-levels@breunigs
|
||||||
// @name IITC plugin: guess player level
|
// @name IITC plugin: guess player level
|
||||||
// @category Info
|
// @category Info
|
||||||
// @version 0.4.6.@@DATETIMEVERSION@@
|
// @version 0.4.7.@@DATETIMEVERSION@@
|
||||||
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
||||||
// @updateURL @@UPDATEURL@@
|
// @updateURL @@UPDATEURL@@
|
||||||
// @downloadURL @@DOWNLOADURL@@
|
// @downloadURL @@DOWNLOADURL@@
|
||||||
@ -64,7 +64,8 @@ window.plugin.guessPlayerLevels.setLevelTitle = function(dom) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.plugin.guessPlayerLevels.setupChatNickHelper = function() {
|
window.plugin.guessPlayerLevels.setupChatNickHelper = function() {
|
||||||
$(window).delegate('.nickname', 'mouseenter', function() {
|
$(document).on('mouseenter', '.nickname', function() {
|
||||||
|
console.log('mouseenter .nickname');
|
||||||
window.plugin.guessPlayerLevels.setLevelTitle(this);
|
window.plugin.guessPlayerLevels.setLevelTitle(this);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user