mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX Checking for existence of $('SwitchView') (fixes #5282) (from r108436)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@108828 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
2143443472
commit
69ca614fa4
@ -392,9 +392,10 @@ var ss_MainLayout;
|
|||||||
|
|
||||||
$('#Form_EditForm').bind('load delete', function(e) {
|
$('#Form_EditForm').bind('load delete', function(e) {
|
||||||
var updatedSwitchView = $('#AjaxSwitchView');
|
var updatedSwitchView = $('#AjaxSwitchView');
|
||||||
console.debug(updatedSwitchView.html());
|
if(updatedSwitchView.length) {
|
||||||
$('#SwitchView').html(updatedSwitchView.html());
|
$('#SwitchView').html(updatedSwitchView.html());
|
||||||
updatedSwitchView.remove();
|
updatedSwitchView.remove();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user