From cf6f1f8bf46d214d72426dc16bb90e19932fee26 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 28 May 2014 15:59:42 +0000 Subject: [PATCH] icinga/loader.js: play nice with invalid responses Even responses with no HTML or no root node or similar must be rendered successfully to their containers. --- public/js/icinga/loader.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index d88e5adcc..11954a251 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -599,7 +599,10 @@ } var origFocus = document.activeElement; - var $content = $(content); + + // TODO: We do not want to wrap this twice... + var $content = $('
' + content + '
'); + if (false && $('.dashboard', $content).length > 0 && $('.dashboard', $container).length === 0