diff --git a/public/js/icinga/behavior/tooltip.js b/public/js/icinga/behavior/tooltip.js index 98cc1ff59..abc1d4952 100644 --- a/public/js/icinga/behavior/tooltip.js +++ b/public/js/icinga/behavior/tooltip.js @@ -21,7 +21,7 @@ }; Tooltip.prototype.onRendered = function(evt) { - var self = evt.data.self, icinga = evt.data.icinga, el = evt.target; + var _this = evt.data.self, icinga = evt.data.icinga, el = evt.target; $('[title]', el).each(function () { var $el = $(this); @@ -63,7 +63,7 @@ return; } var title = $(this).find('.tipsy-inner').html(); - var atMouse = document.elementFromPoint(self.mouseX, self.mouseY); + var atMouse = document.elementFromPoint(_this.mouseX, _this.mouseY); var nearestTip = $(atMouse).closest('[original-title="' + title + '"]')[0]; if (nearestTip) { var tipsy = $.data(nearestTip, 'tipsy'); diff --git a/public/js/icinga/behavior/tristate.js b/public/js/icinga/behavior/tristate.js index 88c07102d..77dad14e1 100644 --- a/public/js/icinga/behavior/tristate.js +++ b/public/js/icinga/behavior/tristate.js @@ -13,7 +13,7 @@ Tristate.prototype = new Icinga.EventListener(); Tristate.prototype.clickTriState = function (event) { - var self = event.data.self; + var _this = event.data.self; var $tristate = $(this); var triState = parseInt($tristate.data('icinga-tristate'), 10); @@ -42,7 +42,7 @@ } else { $tristate.parent().find('b.tristate-changed').css('visibility', 'hidden'); } - self.icinga.ui.setTriState(value.toString(), $tristate); + _this.icinga.ui.setTriState(value.toString(), $tristate); }; Icinga.Behaviors.Tristate = Tristate;