JS: Remove excessive scroll events

This commit is contained in:
Florian Strohmaier 2018-10-16 15:41:33 +02:00
parent 8c6e1cb9d8
commit d1cbc4b05c
1 changed files with 0 additions and 11 deletions

View File

@ -122,9 +122,6 @@
$( window ).on('unload', { 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
$(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) {
var $input = $(event.currentTarget);
var $radio = $('#' + $input.attr('data-related-radiobtn'));