diff options
author | Valerio Virgillito | 2012-02-16 22:08:04 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-16 22:08:04 -0800 |
commit | 0175cb67e426a27a3ecfb7b81317caa383c8a5a5 (patch) | |
tree | b4fbfcaabaadff508ad5463e8f71fd643995aacb /js/components | |
parent | fe71cb9aa1700199c0089166ad54fc56eb760644 (diff) | |
parent | 9f0c4efe2ed9a00f2c5d85c9d88a8040fedb5d8f (diff) | |
download | ninja-0175cb67e426a27a3ecfb7b81317caa383c8a5a5.tar.gz |
Merge branch 'refs/heads/master' into components
Diffstat (limited to 'js/components')
9 files changed, 68 insertions, 25 deletions
diff --git a/js/components/controllers/tree-controller.js b/js/components/controllers/tree-controller.js index 03ef7b9e..1e9222fd 100644 --- a/js/components/controllers/tree-controller.js +++ b/js/components/controllers/tree-controller.js | |||
@@ -28,7 +28,7 @@ var TreeController = exports.TreeController = Montage.create(ObjectController, / | |||
28 | }, | 28 | }, |
29 | 29 | ||
30 | branchKey : { | 30 | branchKey : { |
31 | value: 'children' | 31 | value: null |
32 | }, | 32 | }, |
33 | 33 | ||
34 | _root : { | 34 | _root : { |
@@ -98,7 +98,8 @@ var TreeController = exports.TreeController = Montage.create(ObjectController, / | |||
98 | }, | 98 | }, |
99 | 99 | ||
100 | branchControllers: { | 100 | branchControllers: { |
101 | value: [] | 101 | value: [], |
102 | distinct: true | ||
102 | }, | 103 | }, |
103 | 104 | ||
104 | addBranchController : { | 105 | addBranchController : { |
diff --git a/js/components/tools-properties/text-properties.reel/text-properties.html b/js/components/tools-properties/text-properties.reel/text-properties.html index a7d2af10..13a88ba7 100755 --- a/js/components/tools-properties/text-properties.reel/text-properties.html +++ b/js/components/tools-properties/text-properties.reel/text-properties.html | |||
@@ -100,7 +100,8 @@ | |||
100 | "pressedClass": "active", | 100 | "pressedClass": "active", |
101 | "preventFocus": true, | 101 | "preventFocus": true, |
102 | "identifier": "btnBold", | 102 | "identifier": "btnBold", |
103 | "label": "B" | 103 | "pressedLabel": "B", |
104 | "unpressedLabel": "B" | ||
104 | }, | 105 | }, |
105 | "listeners": [ | 106 | "listeners": [ |
106 | { | 107 | { |
@@ -117,7 +118,8 @@ | |||
117 | "pressedClass": "active", | 118 | "pressedClass": "active", |
118 | "preventFocus": true, | 119 | "preventFocus": true, |
119 | "identifier": "btnItalic", | 120 | "identifier": "btnItalic", |
120 | "label": "I" | 121 | "pressedLabel": "I", |
122 | "unpressedLabel": "I" | ||
121 | }, | 123 | }, |
122 | "listeners": [ | 124 | "listeners": [ |
123 | { | 125 | { |
@@ -134,7 +136,8 @@ | |||
134 | "pressedClass": "active", | 136 | "pressedClass": "active", |
135 | "preventFocus": true, | 137 | "preventFocus": true, |
136 | "identifier": "btnUnderline", | 138 | "identifier": "btnUnderline", |
137 | "label": "U" | 139 | "pressedLabel": "U", |
140 | "unpressedLabel": "U" | ||
138 | }, | 141 | }, |
139 | "listeners": [ | 142 | "listeners": [ |
140 | { | 143 | { |
@@ -151,7 +154,8 @@ | |||
151 | "pressedClass": "active", | 154 | "pressedClass": "active", |
152 | "preventFocus": true, | 155 | "preventFocus": true, |
153 | "identifier": "btnStrikethrough", | 156 | "identifier": "btnStrikethrough", |
154 | "label": "S" | 157 | "pressedLabel": "S", |
158 | "unpressedLabel": "S" | ||
155 | }, | 159 | }, |
156 | "listeners": [ | 160 | "listeners": [ |
157 | { | 161 | { |
@@ -169,7 +173,8 @@ | |||
169 | "pressedClass": "active", | 173 | "pressedClass": "active", |
170 | "preventFocus": true, | 174 | "preventFocus": true, |
171 | "identifier": "alignLeft", | 175 | "identifier": "alignLeft", |
172 | "label": "Left" | 176 | "pressedLabel": "Left", |
177 | "unpressedLabel": "Left" | ||
173 | }, | 178 | }, |
174 | "listeners": [ | 179 | "listeners": [ |
175 | { | 180 | { |
@@ -186,7 +191,8 @@ | |||
186 | "pressedClass": "active", | 191 | "pressedClass": "active", |
187 | "preventFocus": true, | 192 | "preventFocus": true, |
188 | "identifier": "alignCenter", | 193 | "identifier": "alignCenter", |
189 | "label": "Center" | 194 | "pressedLabel": "Center", |
195 | "unpressedLabel": "Center" | ||
190 | }, | 196 | }, |
191 | "listeners": [ | 197 | "listeners": [ |
192 | { | 198 | { |
@@ -203,7 +209,8 @@ | |||
203 | "pressedClass": "active", | 209 | "pressedClass": "active", |
204 | "preventFocus": true, | 210 | "preventFocus": true, |
205 | "identifier": "alignRight", | 211 | "identifier": "alignRight", |
206 | "label": "Right" | 212 | "pressedLabel": "Right", |
213 | "unpressedLabel": "Right" | ||
207 | }, | 214 | }, |
208 | "listeners": [ | 215 | "listeners": [ |
209 | { | 216 | { |
@@ -220,7 +227,8 @@ | |||
220 | "pressedClass": "active", | 227 | "pressedClass": "active", |
221 | "preventFocus": true, | 228 | "preventFocus": true, |
222 | "identifier": "alignJustify", | 229 | "identifier": "alignJustify", |
223 | "label": "Justify" | 230 | "pressedLabel": "Justify", |
231 | "unpressedLabel": "Justify" | ||
224 | }, | 232 | }, |
225 | "listeners": [ | 233 | "listeners": [ |
226 | { | 234 | { |
@@ -271,7 +279,8 @@ | |||
271 | "pressedClass": "active", | 279 | "pressedClass": "active", |
272 | "preventFocus": true, | 280 | "preventFocus": true, |
273 | "identifier": "bulletedList", | 281 | "identifier": "bulletedList", |
274 | "label": "• • •" | 282 | "pressedLabel": "• • •", |
283 | "unpressedLabel": "• • •" | ||
275 | }, | 284 | }, |
276 | "listeners": [ | 285 | "listeners": [ |
277 | { | 286 | { |
@@ -288,7 +297,8 @@ | |||
288 | "pressedClass": "active", | 297 | "pressedClass": "active", |
289 | "preventFocus": true, | 298 | "preventFocus": true, |
290 | "identifier": "numberedList", | 299 | "identifier": "numberedList", |
291 | "label": "1 2 3" | 300 | "pressedLabel": "1 2 3", |
301 | "unpressedLabel": "1 2 3" | ||
292 | }, | 302 | }, |
293 | "listeners": [ | 303 | "listeners": [ |
294 | { | 304 | { |
diff --git a/js/components/treeview/ninja-branch.reel/ninja-branch.css b/js/components/treeview/ninja-branch.reel/ninja-branch.css index d8c212e8..340233c7 100644 --- a/js/components/treeview/ninja-branch.reel/ninja-branch.css +++ b/js/components/treeview/ninja-branch.reel/ninja-branch.css | |||
@@ -26,7 +26,6 @@ | |||
26 | cursor: pointer; | 26 | cursor: pointer; |
27 | font-weight: bold; | 27 | font-weight: bold; |
28 | padding: 3px 0 4px; | 28 | padding: 3px 0 4px; |
29 | text-shadow: 1px 1px 0 #000; | ||
30 | } | 29 | } |
31 | 30 | ||
32 | /* First Level */ | 31 | /* First Level */ |
diff --git a/js/components/treeview/ninja-leaf.reel/ninja-leaf.css b/js/components/treeview/ninja-leaf.reel/ninja-leaf.css index 085b11e0..fedc1d9d 100644 --- a/js/components/treeview/ninja-leaf.reel/ninja-leaf.css +++ b/js/components/treeview/ninja-leaf.reel/ninja-leaf.css | |||
@@ -19,7 +19,6 @@ | |||
19 | /* Second level */ | 19 | /* Second level */ |
20 | .branch .branch .leaf-label { | 20 | .branch .branch .leaf-label { |
21 | background-position: 25px center; | 21 | background-position: 25px center; |
22 | box-shadow: 0 3px 4px -4px rgba(0,0,0,0.2); | ||
23 | color: #FFF; | 22 | color: #FFF; |
24 | padding-left: 45px; | 23 | padding-left: 45px; |
25 | } | 24 | } |
diff --git a/js/components/treeview/ninja-leaf.reel/ninja-leaf.js b/js/components/treeview/ninja-leaf.reel/ninja-leaf.js index c6416693..1bfe66a4 100644 --- a/js/components/treeview/ninja-leaf.reel/ninja-leaf.js +++ b/js/components/treeview/ninja-leaf.reel/ninja-leaf.js | |||
@@ -63,7 +63,8 @@ exports.Leaf = Montage.create(TreeNode, { | |||
63 | 'dblclick' : 'handleDblclick', | 63 | 'dblclick' : 'handleDblclick', |
64 | 'dragstart' : 'handleDragStart', | 64 | 'dragstart' : 'handleDragStart', |
65 | 'dragend' : 'handleDragEnd' | 65 | 'dragend' : 'handleDragEnd' |
66 | } | 66 | }, |
67 | distinct: true | ||
67 | } | 68 | } |
68 | 69 | ||
69 |