diff options
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 | 14 |
2 files changed, 10 insertions, 5 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 3783459e..16643813 100755 --- a/js/panels/Panel.reel/Panel.js +++ b/js/panels/Panel.reel/Panel.js | |||
@@ -13,10 +13,15 @@ exports.Panel = Montage.create(Component, { | |||
13 | value: "Panel" | 13 | value: "Panel" |
14 | }, | 14 | }, |
15 | 15 | ||
16 | groups: { | 16 | groups: { |
17 | value: [] | 17 | value: [] |
18 | }, | 18 | }, |
19 | 19 | ||
20 | panelContent: { | ||
21 | value: null, | ||
22 | serializable: true | ||
23 | }, | ||
24 | |||
20 | _collapsed: { | 25 | _collapsed: { |
21 | value: false | 26 | value: false |
22 | }, | 27 | }, |
@@ -50,7 +55,8 @@ exports.Panel = Montage.create(Component, { | |||
50 | }, | 55 | }, |
51 | 56 | ||
52 | resizer: { | 57 | resizer: { |
53 | value: null | 58 | value: null, |
59 | serializable: true | ||
54 | }, | 60 | }, |
55 | 61 | ||
56 | modulePath: { | 62 | modulePath: { |
@@ -120,8 +126,8 @@ exports.Panel = Montage.create(Component, { | |||
120 | 126 | ||
121 | this._currentDocument = value; | 127 | this._currentDocument = value; |
122 | 128 | ||
123 | if(typeof this.panelContent.content[0].controller._currentDocument !== "undefined") { | 129 | if(typeof this.panelContent.content._element.controller._currentDocument !== "undefined") { |
124 | this.panelContent.content[0].controller.currentDocument = this._currentDocument; | 130 | this.panelContent.content._element.controller.currentDocument = this._currentDocument; |
125 | } | 131 | } |
126 | 132 | ||
127 | if(!value) { | 133 | if(!value) { |