JS: Remove excessive scroll events
This commit is contained in:
parent
8c6e1cb9d8
commit
d1cbc4b05c
|
@ -122,9 +122,6 @@
|
||||||
$( window ).on('unload', { self: this }, this.onUnload);
|
$( window ).on('unload', { self: this }, this.onUnload);
|
||||||
$( window ).on('beforeunload', { self: this }, this.onUnload);
|
$( window ).on('beforeunload', { self: this }, this.onUnload);
|
||||||
|
|
||||||
// We catch scroll events in our containers
|
|
||||||
$('.container').on('scroll', { self: this }, this.icinga.events.onContainerScroll);
|
|
||||||
|
|
||||||
// Remove notifications on click
|
// Remove notifications on click
|
||||||
$(document).on('click', '#notifications li', function () { $(this).remove(); });
|
$(document).on('click', '#notifications li', function () { $(this).remove(); });
|
||||||
|
|
||||||
|
@ -191,14 +188,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* A scroll event happened in one of our containers
|
|
||||||
*/
|
|
||||||
onContainerScroll: function (event) {
|
|
||||||
// Ugly. And PLEASE, not so often
|
|
||||||
icinga.ui.fixControls();
|
|
||||||
},
|
|
||||||
|
|
||||||
autoCheckRadioButton: function (event) {
|
autoCheckRadioButton: function (event) {
|
||||||
var $input = $(event.currentTarget);
|
var $input = $(event.currentTarget);
|
||||||
var $radio = $('#' + $input.attr('data-related-radiobtn'));
|
var $radio = $('#' + $input.attr('data-related-radiobtn'));
|
||||||
|
|
Loading…
Reference in New Issue