parent
d882ea11b4
commit
be05d3a73a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue