player tracker plugin: update to use new method to register interest in background COMM when needed
fix #885
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
// @id iitc-plugin-player-tracker@breunigs
|
// @id iitc-plugin-player-tracker@breunigs
|
||||||
// @name IITC Plugin: Player tracker
|
// @name IITC Plugin: Player tracker
|
||||||
// @category Layer
|
// @category Layer
|
||||||
// @version 0.10.5.@@DATETIMEVERSION@@
|
// @version 0.11.0.@@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@@
|
||||||
@ -104,8 +104,12 @@ window.plugin.playerTracker.zoomListener = function() {
|
|||||||
plugin.playerTracker.drawnTracesEnl.clearLayers();
|
plugin.playerTracker.drawnTracesEnl.clearLayers();
|
||||||
plugin.playerTracker.drawnTracesRes.clearLayers();
|
plugin.playerTracker.drawnTracesRes.clearLayers();
|
||||||
ctrl.addClass('disabled').attr('title', 'Zoom in to show those.');
|
ctrl.addClass('disabled').attr('title', 'Zoom in to show those.');
|
||||||
|
//note: zoomListener is also called at init time to set up things, so we only need to do this in here
|
||||||
|
window.chat.backgroundChannelData('plugin.playerTracker', 'all', false); //disable this plugin's interest in 'all' COMM
|
||||||
} else {
|
} else {
|
||||||
ctrl.removeClass('disabled').attr('title', '');
|
ctrl.removeClass('disabled').attr('title', '');
|
||||||
|
//note: zoomListener is also called at init time to set up things, so we only need to do this in here
|
||||||
|
window.chat.backgroundChannelData('plugin.playerTracker', 'all', true); //enable this plugin's interest in 'all' COMM
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user