mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
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:
parent
5b24ed1a15
commit
cf6f1f8bf4
@ -599,7 +599,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
var origFocus = document.activeElement;
|
var origFocus = document.activeElement;
|
||||||
var $content = $(content);
|
|
||||||
|
// TODO: We do not want to wrap this twice...
|
||||||
|
var $content = $('<div>' + content + '</div>');
|
||||||
|
|
||||||
if (false &&
|
if (false &&
|
||||||
$('.dashboard', $content).length > 0 &&
|
$('.dashboard', $content).length > 0 &&
|
||||||
$('.dashboard', $container).length === 0
|
$('.dashboard', $container).length === 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user