Skip to content

Commit

Permalink
Always load preview when in preview mode, not in edit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Curry authored and chillu committed Jun 13, 2013
1 parent 0b16cba commit 6ca27cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/javascript/LeftAndMain.Preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6ca27cd

Please sign in to comment.