mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fixed preview behaviour blacklist, was including "CMSMain" which is applied to every CMS panel (so it didn't re-load the CMS edit forms on any clicks in the preview iframe)
This commit is contained in:
parent
e6b12ff43f
commit
2777637d82
@ -92,7 +92,7 @@
|
|||||||
contentEl = containerEl.find('.cms-content');
|
contentEl = containerEl.find('.cms-content');
|
||||||
|
|
||||||
// Only load if we're in the "edit page" view
|
// Only load if we're in the "edit page" view
|
||||||
var blockedClasses = ['CMSMain', 'CMSPagesController', 'CMSSettingsController', 'CMSPageHistoryController'];
|
var blockedClasses = ['CMSPagesController', 'CMSSettingsController', 'CMSPageHistoryController'];
|
||||||
if(contentEl.is('.' + blockedClasses.join(',.'))) return;
|
if(contentEl.is('.' + blockedClasses.join(',.'))) return;
|
||||||
|
|
||||||
// Load this page in the admin interface if appropriate
|
// Load this page in the admin interface if appropriate
|
||||||
|
Loading…
Reference in New Issue
Block a user