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/stage/stage-view.reel/stage-view.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/stage') diff --git a/js/stage/stage-view.reel/stage-view.js b/js/stage/stage-view.reel/stage-view.js index 1e85b4fd..31ace49c 100755 --- a/js/stage/stage-view.reel/stage-view.js +++ b/js/stage/stage-view.reel/stage-view.js @@ -113,6 +113,8 @@ exports.StageView = Montage.create(Component, { this.application.ninja.stage._scrollFlag = false; // TODO HACK to prevent type error on Hide/Show Iframe this.application.ninja.documentController.activeDocument = doc; this.application.ninja.stage.hideCanvas(true); + + document.getElementById("iframeContainer").style.display="none";//hide the iframe when switching to code view } }, -- cgit v1.2.3