aboutsummaryrefslogtreecommitdiff
path: root/js/stage
diff options
context:
space:
mode:
authorValerio Virgillito2012-06-01 00:39:14 -0700
committerValerio Virgillito2012-06-01 00:39:14 -0700
commit6079ceedb5b340c78ecd02f27dfa734eedccf512 (patch)
treece8fd28b18701e8dad5195f736671e9eea4920dc /js/stage
parent3a3a2351ea2d816bf953cbf76622772f7d64aa8b (diff)
downloadninja-6079ceedb5b340c78ecd02f27dfa734eedccf512.tar.gz
making the document bar handle the current document to hide/show itself
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/stage')
-rwxr-xr-xjs/stage/stage.reel/stage.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js
index ed716541..d8f7313b 100755
--- a/js/stage/stage.reel/stage.js
+++ b/js/stage/stage.reel/stage.js
@@ -192,7 +192,6 @@ exports.Stage = Montage.create(Component, {
192 drawUtils._eltArray.length = 0; 192 drawUtils._eltArray.length = 0;
193 drawUtils._planesArray.length = 0; 193 drawUtils._planesArray.length = 0;
194 } else if(this._currentDocument.currentView === "design") { 194 } else if(this._currentDocument.currentView === "design") {
195 this.showCodeViewBar(false);
196 this.restoreAllPanels(); 195 this.restoreAllPanels();
197 this.hideCanvas(false); 196 this.hideCanvas(false);
198 this.showRulers(); 197 this.showRulers();
@@ -200,7 +199,6 @@ exports.Stage = Montage.create(Component, {
200 this.clearAllCanvas(); 199 this.clearAllCanvas();
201 this.initWithDocument(); 200 this.initWithDocument();
202 } else { 201 } else {
203 this.showCodeViewBar(true);
204 this.collapseAllPanels(); 202 this.collapseAllPanels();
205 this.hideCanvas(true); 203 this.hideCanvas(true);
206 this.hideRulers(); 204 this.hideRulers();
@@ -1064,17 +1062,6 @@ exports.Stage = Montage.create(Component, {
1064 this.application.ninja.rulerLeft.style.display = "none"; 1062 this.application.ninja.rulerLeft.style.display = "none";
1065 } 1063 }
1066 }, 1064 },
1067 showCodeViewBar:{
1068 value:function(isCodeView){
1069 if(isCodeView === true) {
1070
1071 this.application.ninja.documentBar.element.style.display = "none";
1072 } else {
1073 this.application.ninja.documentBar.element.style.display = "block";
1074
1075 }
1076 }
1077 },
1078 1065
1079 collapseAllPanels:{ 1066 collapseAllPanels:{
1080 value:function(){ 1067 value:function(){