aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-05-07 15:41:40 -0700
committerNivesh Rajbhandari2012-05-07 15:41:40 -0700
commitaa8cfcfe0091651708f77300f48a7e703f92f341 (patch)
tree20396260e669e8503269bed6574bae3e2f0e0644
parentc9ae789c554a54a1e8702a3bf4e55c529568f4c1 (diff)
downloadninja-aa8cfcfe0091651708f77300f48a7e703f92f341.tar.gz
Adding back currentView property in document-html so that menus work.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
-rwxr-xr-xjs/document/document-html.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/js/document/document-html.js b/js/document/document-html.js
index 79fe461b..d0f5b817 100755
--- a/js/document/document-html.js
+++ b/js/document/document-html.js
@@ -81,6 +81,7 @@ exports.HtmlDocument = Montage.create(Component, {
81 } 81 }
82 // 82 //
83 if (view === 'design') { 83 if (view === 'design') {
84 this.currentView = "design";
84 //Showing design iFrame 85 //Showing design iFrame
85 this.model.views.design.show(); 86 this.model.views.design.show();
86 this.model.views.design.iframe.style.opacity = 0; 87 this.model.views.design.iframe.style.opacity = 0;
@@ -118,8 +119,6 @@ exports.HtmlDocument = Montage.create(Component, {
118 this.loaded.callback.call(this.loaded.context, this); 119 this.loaded.callback.call(this.loaded.context, this);
119 //Setting opacity to be viewable after load 120 //Setting opacity to be viewable after load
120 this.model.views.design.iframe.style.opacity = 1; 121 this.model.views.design.iframe.style.opacity = 1;
121 //TODO: Remove, this is a temp hard-coded hack
122 this.application.ninja.appModel.show3dGrid = true;
123 } 122 }
124 } 123 }
125 //////////////////////////////////////////////////////////////////// 124 ////////////////////////////////////////////////////////////////////