diff options
Diffstat (limited to 'js/controllers/document-controller.js')
-rwxr-xr-x | js/controllers/document-controller.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js index 7795a74d..803519a7 100755 --- a/js/controllers/document-controller.js +++ b/js/controllers/document-controller.js | |||
@@ -366,7 +366,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component, | |||
366 | case 'html': | 366 | case 'html': |
367 | //Open in designer view | 367 | //Open in designer view |
368 | this._hackRootFlag = false; | 368 | this._hackRootFlag = false; |
369 | Montage.create(Document).init(doc, this, this._onOpenDocument); | 369 | Montage.create(Document).init(doc, this, this._onOpenDocument, 'design'); |
370 | break; | 370 | break; |
371 | default: | 371 | default: |
372 | //Open in code view | 372 | //Open in code view |
@@ -490,6 +490,9 @@ var DocumentController = exports.DocumentController = Montage.create(Component, | |||
490 | this.webTemplate = false; | 490 | this.webTemplate = false; |
491 | 491 | ||
492 | NJevent("onOpenDocument", doc); | 492 | NJevent("onOpenDocument", doc); |
493 | |||
494 | this.application.ninja.stage.stageView.showCodeViewBar(false); | ||
495 | this.application.ninja.stage.stageView.restoreAllPanels(); | ||
493 | } | 496 | } |
494 | }, | 497 | }, |
495 | 498 | ||