aboutsummaryrefslogtreecommitdiff
path: root/js/components/tools-properties/selection-properties.reel/selection-properties.js
diff options
context:
space:
mode:
authorArmen Kesablyan2012-05-17 14:01:38 -0700
committerArmen Kesablyan2012-05-17 14:01:38 -0700
commit6c8f3525b839e82cf43df43700a0160ee2c5458f (patch)
tree3fb801fa54b759c5568d75bb467e02652ce77c3e /js/components/tools-properties/selection-properties.reel/selection-properties.js
parente8ae5db7ce7023b638375cbc27a3f7b7a2f77b23 (diff)
parent342c97ac9b727b22a7b0bfefca4d2a168bc3055b (diff)
downloadninja-6c8f3525b839e82cf43df43700a0160ee2c5458f.tar.gz
Merge branch 'refs/heads/dom-architecture' into binding
Conflicts: css/ninja.css scss/imports/scss/_toolbar.scss Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/components/tools-properties/selection-properties.reel/selection-properties.js')
-rwxr-xr-xjs/components/tools-properties/selection-properties.reel/selection-properties.js30
1 files changed, 27 insertions, 3 deletions
diff --git a/js/components/tools-properties/selection-properties.reel/selection-properties.js b/js/components/tools-properties/selection-properties.reel/selection-properties.js
index c25e96d1..43622960 100755
--- a/js/components/tools-properties/selection-properties.reel/selection-properties.js
+++ b/js/components/tools-properties/selection-properties.reel/selection-properties.js
@@ -14,15 +14,39 @@ exports.SelectionProperties = Montage.create(ToolProperties, {
14 _controls: { value: false }, 14 _controls: { value: false },
15 15
16 _subPrepare: { 16 _subPrepare: {
17 value: function() { 17 value: function () {
18 this.transform.addEventListener("change", this, false); 18 this.transform.addEventListener("change", this, false);
19
20 // The functionality for these buttons is not currently implemented
21 // Until it is we will make them all disabled by default.
22 this.topAlign.disabled = true;
23
24 this.middleAlign.disabled = true;
25 this.bottomAlign.disabled = true;
26
27 this.leftAlign.disabled = true;
28 this.centerAlign.disabled = true;
29 this.rightAlign.disabled = true;
30
31 this.distTop.disabled = true;
32 this.distMiddle.disabled = true;
33 this.distBottom.disabled = true;
34
35 this.distLeft.disabled = true;
36 this.distCenter.disabled = true;
37 this.distRight.disabled = true;
38
39 this.arrangeBringForward.disabled = true;
40 this.arrangeSendBackward.disabled = true;
41 this.arrangeBringToFront.disabled = true;
42 this.arrangeSendToBack.disabled = true;
19 } 43 }
20 }, 44 },
21 45
22 handleChange: { 46 handleChange: {
23 value: function(event) { 47 value: function (event) {
24 this._controls = this.transform.checked; 48 this._controls = this.transform.checked;
25 NJevent("toolOptionsChange", {source: "SelectionProperties", inTransformMode: this.transform.checked}); 49 NJevent("toolOptionsChange", { source: "SelectionProperties", inTransformMode: this.transform.checked });
26 } 50 }
27 } 51 }
28 52