mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR More flexible definition of non-previewable CMS interfaces
This commit is contained in:
parent
8ca3f9b9be
commit
b4fd20dc3c
@ -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'),
|
||||
|
Loading…
Reference in New Issue
Block a user