Always load preview when in preview mode, not in edit mode

This commit is contained in:
Robert Curry 2013-06-13 11:31:57 +12:00 committed by Ingo Schommer
parent 0b16cbaee8
commit 6ca27cd257

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;
}