aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Panel.reel
diff options
context:
space:
mode:
authorArmen Kesablyan2012-06-11 11:17:41 -0700
committerArmen Kesablyan2012-06-11 11:17:41 -0700
commit278769df00ced8620fd73371e38fe2e43f07ca3b (patch)
treedeb505c8a66b660eee1f17a2c6c4c575c7939f6f /js/panels/Panel.reel
parent555fd6efa605b937800b3979a4c68fa7eb8666ae (diff)
parent0f040acabfb7a4bf3138debec5aff869487ceb11 (diff)
downloadninja-278769df00ced8620fd73371e38fe2e43f07ca3b.tar.gz
Merge branch 'refs/heads/master' into binding
Conflicts: js/document/models/html.js js/document/views/design.js js/ninja.reel/ninja.js Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/panels/Panel.reel')
-rwxr-xr-xjs/panels/Panel.reel/Panel.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/js/panels/Panel.reel/Panel.js b/js/panels/Panel.reel/Panel.js
index bd9b4e2f..3783459e 100755
--- a/js/panels/Panel.reel/Panel.js
+++ b/js/panels/Panel.reel/Panel.js
@@ -104,6 +104,35 @@ exports.Panel = Montage.create(Component, {
104 } 104 }
105 }, 105 },
106 106
107 _currentDocument: {
108 value : null,
109 enumerable : false
110 },
111
112 currentDocument : {
113 get : function() {
114 return this._currentDocument;
115 },
116 set : function(value) {
117 if (value === this._currentDocument) {
118 return;
119 }
120
121 this._currentDocument = value;
122
123 if(typeof this.panelContent.content[0].controller._currentDocument !== "undefined") {
124 this.panelContent.content[0].controller.currentDocument = this._currentDocument;
125 }
126
127 if(!value) {
128 this.disabled = true;
129 } else {
130 this.disabled = this._currentDocument.currentView !== "design";
131 }
132
133 }
134 },
135
107 handleBtnCollapseAction: { 136 handleBtnCollapseAction: {
108 value: function() { 137 value: function() {
109 this.collapsed = !this.collapsed; 138 this.collapsed = !this.collapsed;