mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 09:14:08 +02:00
js/loader: disable click handler block on refresh
This used to be ways too slow when many elements where involved. Left the old code there as a reminder. In case we really need it we should use something faster like an overlay or so.
This commit is contained in:
parent
f095489017
commit
f25f4f06d8
@ -691,11 +691,12 @@
|
|||||||
var $content = $('<div>' + content + '</div>');
|
var $content = $('<div>' + content + '</div>');
|
||||||
|
|
||||||
// Disable all click events while rendering
|
// Disable all click events while rendering
|
||||||
$('*').click(function (event) {
|
// (Disabling disabled, was ways too slow)
|
||||||
event.stopImmediatePropagation();
|
// $('*').click(function (event) {
|
||||||
event.stopPropagation();
|
// event.stopImmediatePropagation();
|
||||||
event.preventDefault();
|
// event.stopPropagation();
|
||||||
});
|
// event.preventDefault();
|
||||||
|
// });
|
||||||
|
|
||||||
$('.container', $container).each(function() {
|
$('.container', $container).each(function() {
|
||||||
self.stopPendingRequestsFor($(this));
|
self.stopPendingRequestsFor($(this));
|
||||||
@ -738,8 +739,8 @@
|
|||||||
icinga.ui.initializeControls($container);
|
icinga.ui.initializeControls($container);
|
||||||
icinga.ui.fixControls();
|
icinga.ui.fixControls();
|
||||||
|
|
||||||
// Re-enable all click events
|
// Re-enable all click events (disabled as of performance reasons)
|
||||||
$('*').off('click');
|
// $('*').off('click');
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user