aboutsummaryrefslogtreecommitdiff
path: root/js/stage/stage-view.reel
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-18 00:21:56 -0700
committerValerio Virgillito2012-05-18 00:21:56 -0700
commit7a94696e19b14e15261df516e2ba75e693b1313d (patch)
treeccb3cdff79be3ae5221779787bfbdcc5ca3d8e77 /js/stage/stage-view.reel
parentf227015e14b505dbd3fc4b030ca17cb6c50c5d88 (diff)
downloadninja-7a94696e19b14e15261df516e2ba75e693b1313d.tar.gz
enabling basic document switching
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/stage/stage-view.reel')
-rwxr-xr-xjs/stage/stage-view.reel/stage-view.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/js/stage/stage-view.reel/stage-view.js b/js/stage/stage-view.reel/stage-view.js
index ba94fadf..757c5e51 100755
--- a/js/stage/stage-view.reel/stage-view.js
+++ b/js/stage/stage-view.reel/stage-view.js
@@ -112,28 +112,6 @@ exports.StageView = Montage.create(Component, {
112 */ 112 */
113 switchDocument:{ 113 switchDocument:{
114 value: function(doc){ 114 value: function(doc){
115 this.application.ninja.documentController._hideCurrentDocument();
116 this.application.ninja.documentController.activeDocument = doc;
117
118 if(this.application.ninja.documentController.activeDocument.currentView === "design") {
119 this.application.ninja.currentDocument = this.application.ninja.documentController.activeDocument;
120 }
121
122 this.application.ninja.stage._scrollFlag = false; // TODO HACK to prevent type error on Hide/Show Iframe
123
124
125// this.application.ninja.documentController._showCurrentDocument();
126 // Inline function below
127 if(this.activeDocument) {
128 this.activeDocument.container.style["display"] = "block";
129 if(this.activeDocument.currentView === "design"){
130 this.activeDocument.container.parentNode.style["display"] = "block";
131 this.activeDocument.restoreAppState();
132 } else {
133 //hide the iframe when switching to code view
134 document.getElementById("iframeContainer").style.display = "none";
135 }
136 }
137 115
138 116
139 //focus editor 117 //focus editor