MINOR More flexible definition of non-previewable CMS interfaces

This commit is contained in:
Ingo Schommer 2011-09-19 21:33:35 +02:00
parent 8ca3f9b9be
commit b4fd20dc3c

View File

@ -91,7 +91,8 @@
contentEl = containerEl.find('.cms-content');
// Only load if we're in the "edit page" view
if(!contentEl.hasClass('CMSMain') || contentEl.hasClass('CMSPagesController') || contentEl.hasClass('CMSSettingsController')) return;
var blockedClasses = ['CMSMain', 'CMSPagesController', 'CMSSettingsController', 'CMSPageHistoryController'];
if(contentEl.is('.' + blockedClasses.join(',.'))) return;
// Load this page in the admin interface if appropriate
var id = $(doc).find('meta[name=x-page-id]').attr('content'),