Fix dashboard header handling

refs #7876
This commit is contained in:
Johannes Meyer 2015-04-15 13:23:34 +02:00
parent d882ea11b4
commit be05d3a73a
1 changed files with 2 additions and 6 deletions

View File

@ -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);