From 8c40940f030adb74f534c3c5ad8d845e41f09b30 Mon Sep 17 00:00:00 2001 From: Ananya Sen Date: Fri, 10 Feb 2012 11:04:42 -0800 Subject: hide iframeContainer if we want to open code view as the first document after ninja launches Signed-off-by: Ananya Sen --- js/io/document/document-controller.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'js/io') 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, this.eventManager.addEventListener("recordStyleChanged", this, false); // Temporary testing opening a new file after Ninja has loaded - //this.eventManager.addEventListener("executeNewProject", this, false); + this.eventManager.addEventListener("executeNewProject", this, false); } }, handleAppLoaded: { value: function() { - this.openDocument({"type": "html"}); + //this.openDocument({"type": "html"}); } }, @@ -402,7 +402,10 @@ var DocumentController = exports.DocumentController = Montage.create(Component, this.application.ninja.stage.restoreScroll(); this.application.ninja.stage.hideCanvas(false); this.application.ninja.stage.stageView.showRulers(); - } + }else{ + //hide the iframe when switching to code view + document.getElementById("iframeContainer").style.display="none"; + } } } }, -- cgit v1.2.3