mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Always load preview when in preview mode, not in edit mode
This commit is contained in:
parent
0b16cbaee8
commit
6ca27cd257
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user