diff options
Diffstat (limited to 'js/io/document/document-controller.js')
-rwxr-xr-x | js/io/document/document-controller.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/js/io/document/document-controller.js b/js/io/document/document-controller.js index 14231c64..c2a2dab6 100755 --- a/js/io/document/document-controller.js +++ b/js/io/document/document-controller.js | |||
@@ -68,13 +68,13 @@ var DocumentController = exports.DocumentController = Montage.create(Component, | |||
68 | this.eventManager.addEventListener("recordStyleChanged", this, false); | 68 | this.eventManager.addEventListener("recordStyleChanged", this, false); |
69 | 69 | ||
70 | // Temporary testing opening a new file after Ninja has loaded | 70 | // Temporary testing opening a new file after Ninja has loaded |
71 | //this.eventManager.addEventListener("executeNewProject", this, false); | 71 | this.eventManager.addEventListener("executeNewProject", this, false); |
72 | } | 72 | } |
73 | }, | 73 | }, |
74 | 74 | ||
75 | handleAppLoaded: { | 75 | handleAppLoaded: { |
76 | value: function() { | 76 | value: function() { |
77 | this.openDocument({"type": "html"}); | 77 | //this.openDocument({"type": "html"}); |
78 | } | 78 | } |
79 | }, | 79 | }, |
80 | 80 | ||
@@ -402,7 +402,10 @@ var DocumentController = exports.DocumentController = Montage.create(Component, | |||
402 | this.application.ninja.stage.restoreScroll(); | 402 | this.application.ninja.stage.restoreScroll(); |
403 | this.application.ninja.stage.hideCanvas(false); | 403 | this.application.ninja.stage.hideCanvas(false); |
404 | this.application.ninja.stage.stageView.showRulers(); | 404 | this.application.ninja.stage.stageView.showRulers(); |
405 | } | 405 | }else{ |
406 | //hide the iframe when switching to code view | ||
407 | document.getElementById("iframeContainer").style.display="none"; | ||
408 | } | ||
406 | } | 409 | } |
407 | } | 410 | } |
408 | }, | 411 | }, |