From f25f4f06d802cab366767fd6e1a5cec97a0ea091 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sat, 1 Nov 2014 01:11:12 +0100 Subject: [PATCH] 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. --- public/js/icinga/loader.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index dca88c394..83a13326c 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -691,11 +691,12 @@ var $content = $('
' + content + '
'); // 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'); }, /**