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)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@108436 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
2e25aa2bdf
commit
155a04578d
@ -25,7 +25,7 @@ CMSForm.prototype = {
|
|||||||
ajaxActionsAtTop(this.id, 'form_actions_' + this.formName, this.formName);
|
ajaxActionsAtTop(this.id, 'form_actions_' + this.formName, this.formName);
|
||||||
|
|
||||||
// Update the nav items down the bottom
|
// Update the nav items down the bottom
|
||||||
if($('AjaxSwitchView')) {
|
if($('SwitchView') && $('AjaxSwitchView')) {
|
||||||
$('SwitchView').innerHTML = $('AjaxSwitchView').innerHTML;
|
$('SwitchView').innerHTML = $('AjaxSwitchView').innerHTML;
|
||||||
$('AjaxSwitchView').innerHTML = '';
|
$('AjaxSwitchView').innerHTML = '';
|
||||||
Behaviour.apply('SwitchView'); // This is needed so calendar still works
|
Behaviour.apply('SwitchView'); // This is needed so calendar still works
|
||||||
|
Loading…
Reference in New Issue
Block a user