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:
Ingo Schommer 2011-12-14 22:17:02 +01:00
parent e6b12ff43f
commit 2777637d82

View File

@ -92,7 +92,7 @@
contentEl = containerEl.find('.cms-content');
// 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;
// Load this page in the admin interface if appropriate