mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
Revert "Revert "Dashboard: Always replace title""
This reverts commit d1f13819e4e6e0a97b6dfed2c957f56c4ee1354a. Please do not ask. This was no syntax error.
This commit is contained in:
parent
d1f13819e4
commit
190c1e8f04
@ -708,11 +708,12 @@
|
||||
// $container.html(content);
|
||||
|
||||
} else {
|
||||
if ($container.closest('.dashboard').length &&
|
||||
! $('h1', $content).length
|
||||
if ($container.closest('.dashboard').length
|
||||
) {
|
||||
if (! $('h1', $content).length) {
|
||||
var title = $('h1', $container).first().detach();
|
||||
$('h1', $content).first().detach();
|
||||
}
|
||||
$container.html(title).append(content);
|
||||
} else if (action === 'replace') {
|
||||
$container.html(content);
|
||||
|
Loading…
x
Reference in New Issue
Block a user