Merge pull request #2091 from robert-h-curry/cms-preview-not-loading

Always load preview when in preview mode, not in edit mode
This commit is contained in:
Sean Harvey 2013-06-12 17:16:17 -07:00
commit 0650dbe1e7

View File

@ -106,10 +106,11 @@
} else if (modeName == 'content') {
container.entwine('.ss').contentViewMode();
this.setIsPreviewEnabled(false);
this._loadCurrentState();
// Do not load content as the preview is not visible.
} else if (modeName == 'preview') {
container.entwine('.ss').previewMode();
this.setIsPreviewEnabled(true);
this._loadCurrentState();
} else {
throw 'Invalid mode: ' + modeName;
}