From 9539e778dd678cec90cf83528df69a189be3a192 Mon Sep 17 00:00:00 2001
From: John Mayhew
Date: Tue, 15 May 2012 15:24:13 -0700
Subject: updated object 3D options bar to use the new radio styles
removed its use of the sprite sheet
---
.../object3d-properties.reel/object3d-properties.html | 4 ++--
.../object3d-properties.reel/object3d-properties.js | 18 +++++++++++-------
2 files changed, 13 insertions(+), 9 deletions(-)
(limited to 'js')
diff --git a/js/components/tools-properties/object3d-properties.reel/object3d-properties.html b/js/components/tools-properties/object3d-properties.reel/object3d-properties.html
index 17bafacd..70ed79f9 100755
--- a/js/components/tools-properties/object3d-properties.reel/object3d-properties.html
+++ b/js/components/tools-properties/object3d-properties.reel/object3d-properties.html
@@ -31,8 +31,8 @@
diff --git a/js/components/tools-properties/object3d-properties.reel/object3d-properties.js b/js/components/tools-properties/object3d-properties.reel/object3d-properties.js
index afcb2400..d7f0976c 100755
--- a/js/components/tools-properties/object3d-properties.reel/object3d-properties.js
+++ b/js/components/tools-properties/object3d-properties.reel/object3d-properties.js
@@ -14,17 +14,21 @@ exports.Object3DProperties = Montage.create(ToolProperties, {
rotateGlobally: { value: null, enumerable: false },
_subPrepare: {
- value: function() {
+ value: function () {
this.rotateLocally.addEventListener("click", this, false);
this.rotateGlobally.addEventListener("click", this, false);
}
},
handleClick: {
- value: function(event) {
- this.selectedMode = event._event.target.id;
-
- NJevent("toolOptionsChange", {source: "Object3DProperties", mode: (this.selectedMode === "rotateLocally")});
+ value: function (event) {
+ if (event._event.target === this.rotateLocally) {
+ this.selectedMode = "rotateLocally";
+ } else {
+ this.selectedMode = "rotateGlobally";
+ }
+
+ NJevent("toolOptionsChange", { source: "Object3DProperties", mode: (this.selectedMode === "rotateLocally") });
}
},
@@ -33,8 +37,8 @@ exports.Object3DProperties = Montage.create(ToolProperties, {
},
selectedMode: {
- get: function() { return this._selectedMode;},
- set: function(value) { this._selectedMode = value; }
+ get: function () { return this._selectedMode; },
+ set: function (value) { this._selectedMode = value; }
}
--
cgit v1.2.3