mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
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('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'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user