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.
This commit is contained in:
Thomas Gelf 2014-05-28 15:59:42 +00:00
parent 5b24ed1a15
commit cf6f1f8bf4
1 changed files with 4 additions and 1 deletions

View File

@ -599,7 +599,10 @@
}
var origFocus = document.activeElement;
var $content = $(content);
// TODO: We do not want to wrap this twice...
var $content = $('<div>' + content + '</div>');
if (false &&
$('.dashboard', $content).length > 0 &&
$('.dashboard', $container).length === 0