diff options
author | Ananya Sen | 2012-06-19 11:00:49 -0700 |
---|---|---|
committer | Ananya Sen | 2012-06-19 11:00:49 -0700 |
commit | f1d8401aeb84e0eb0680caf72878dae26fd78a37 (patch) | |
tree | 31771ccaf3d1e2ddf01fa9605438d20be0d155d7 /js/panels/Panel.reel | |
parent | 9ea2610cec6569e7b7d5268b6c65bbf94c4753e5 (diff) | |
parent | 483ad57efcd6475776f580c3af5b60e6deeaf781 (diff) | |
download | ninja-f1d8401aeb84e0eb0680caf72878dae26fd78a37.tar.gz |
Merge branch 'refs/heads/ninja-internal-master' into cut-copy-paste
Diffstat (limited to 'js/panels/Panel.reel')
-rwxr-xr-x | js/panels/Panel.reel/Panel.html | 1 | ||||
-rwxr-xr-x | js/panels/Panel.reel/Panel.js | 12 |
2 files changed, 9 insertions, 4 deletions
diff --git a/js/panels/Panel.reel/Panel.html b/js/panels/Panel.reel/Panel.html index f0fb1044..5937b58f 100755 --- a/js/panels/Panel.reel/Panel.html +++ b/js/panels/Panel.reel/Panel.html | |||
@@ -75,7 +75,6 @@ | |||
75 | "prototype": "montage/ui/button.reel", | 75 | "prototype": "montage/ui/button.reel", |
76 | "properties": { | 76 | "properties": { |
77 | "element": {"#": "btnClose"}, | 77 | "element": {"#": "btnClose"}, |
78 | "pressedClass": "hide", | ||
79 | "identifier": "btnClose" | 78 | "identifier": "btnClose" |
80 | }, | 79 | }, |
81 | "listeners": [ | 80 | "listeners": [ |
diff --git a/js/panels/Panel.reel/Panel.js b/js/panels/Panel.reel/Panel.js index 0c5f0b4b..15eb4da9 100755 --- a/js/panels/Panel.reel/Panel.js +++ b/js/panels/Panel.reel/Panel.js | |||
@@ -13,6 +13,11 @@ exports.Panel = Montage.create(Component, { | |||
13 | value: "Panel" | 13 | value: "Panel" |
14 | }, | 14 | }, |
15 | 15 | ||
16 | panelContent: { | ||
17 | value: null, | ||
18 | serializable: true | ||
19 | }, | ||
20 | |||
16 | _collapsed: { | 21 | _collapsed: { |
17 | value: false | 22 | value: false |
18 | }, | 23 | }, |
@@ -46,7 +51,8 @@ exports.Panel = Montage.create(Component, { | |||
46 | }, | 51 | }, |
47 | 52 | ||
48 | resizer: { | 53 | resizer: { |
49 | value: null | 54 | value: null, |
55 | serializable: true | ||
50 | }, | 56 | }, |
51 | 57 | ||
52 | modulePath: { | 58 | modulePath: { |
@@ -116,8 +122,8 @@ exports.Panel = Montage.create(Component, { | |||
116 | 122 | ||
117 | this._currentDocument = value; | 123 | this._currentDocument = value; |
118 | 124 | ||
119 | if(typeof this.panelContent.content[0].controller._currentDocument !== "undefined") { | 125 | if(typeof this.panelContent.content._element.controller._currentDocument !== "undefined") { |
120 | this.panelContent.content[0].controller.currentDocument = this._currentDocument; | 126 | this.panelContent.content._element.controller.currentDocument = this._currentDocument; |
121 | } | 127 | } |
122 | 128 | ||
123 | if(!value) { | 129 | if(!value) { |