diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index 1c674b947..e63125a4d 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -760,12 +760,8 @@ // $container.html(content); } else { - if ($container.closest('.dashboard').length - ) { - if (! $('h1', $content).length) { - var title = $('h1', $container).first().detach(); - $('h1', $content).first().detach(); - } + if ($container.closest('.dashboard').length) { + var title = $('h1', $container).first().detach(); $container.html(title).append(content); } else if (action === 'replace') { $container.html(content);