Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR More flexible definition of non-previewable CMS interfaces

  • Loading branch information...
commit b4fd20dc3c0817a85e094a83f75d17c65522c87f 1 parent 8ca3f9b
@chillu chillu authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  admin/javascript/LeftAndMain.Preview.js
View
3  admin/javascript/LeftAndMain.Preview.js
@@ -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'),
Please sign in to comment.
Something went wrong with that request. Please try again.