aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Panel.reel
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-30 01:33:20 -0700
committerValerio Virgillito2012-05-30 01:33:20 -0700
commit31b094ee21102f99a4021d505bc3a28527c9e23d (patch)
treea9525ea312f8cc0d25ab6410394f01e974b69068 /js/panels/Panel.reel
parentd8840eda0d3b3e31fb5a72306fe66608f4f99c2b (diff)
downloadninja-31b094ee21102f99a4021d505bc3a28527c9e23d.tar.gz
Fixing the close document.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/panels/Panel.reel')
-rwxr-xr-xjs/panels/Panel.reel/Panel.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/js/panels/Panel.reel/Panel.js b/js/panels/Panel.reel/Panel.js
index 14b25c36..0c5f0b4b 100755
--- a/js/panels/Panel.reel/Panel.js
+++ b/js/panels/Panel.reel/Panel.js
@@ -120,7 +120,12 @@ exports.Panel = Montage.create(Component, {
120 this.panelContent.content[0].controller.currentDocument = this._currentDocument; 120 this.panelContent.content[0].controller.currentDocument = this._currentDocument;
121 } 121 }
122 122
123 this.disabled = this._currentDocument.currentView !== "design"; 123 if(!value) {
124 this.disabled = true;
125 } else {
126 this.disabled = this._currentDocument.currentView !== "design";
127 }
128
124 } 129 }
125 }, 130 },
126 131