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>');
|
||||
|
||||
// Disable all click events while rendering
|
||||
$('*').click(function (event) {
|
||||
event.stopImmediatePropagation();
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
});
|
||||
// (Disabling disabled, was ways too slow)
|
||||
// $('*').click(function (event) {
|
||||
// event.stopImmediatePropagation();
|
||||
// event.stopPropagation();
|
||||
// event.preventDefault();
|
||||
// });
|
||||
|
||||
$('.container', $container).each(function() {
|
||||
self.stopPendingRequestsFor($(this));
|
||||
|
@ -738,8 +739,8 @@
|
|||
icinga.ui.initializeControls($container);
|
||||
icinga.ui.fixControls();
|
||||
|
||||
// Re-enable all click events
|
||||
$('*').off('click');
|
||||
// Re-enable all click events (disabled as of performance reasons)
|
||||
// $('*').off('click');
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue