aboutsummaryrefslogtreecommitdiff
path: root/js/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-06-06 00:27:59 -0700
committerValerio Virgillito2012-06-06 00:27:59 -0700
commit91123fef348ec54d89005adbc151e816856a6a18 (patch)
treeac20e473f2ef52ef1f7deb18eab4d38d6a35ec4b /js/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.js
parent0e1a276f19ea70009c5a649e9667861d7c346a7e (diff)
parent18e212dca48066d1ddaca96875a3f40adcc859b6 (diff)
downloadninja-91123fef348ec54d89005adbc151e816856a6a18.tar.gz
Merge branch 'refs/heads/master' into montage-v10-integration
Conflicts: js/components/tools-properties/fill-properties.reel/fill-properties.js Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.js')
-rwxr-xr-xjs/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.js28
1 files changed, 7 insertions, 21 deletions
diff --git a/js/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.js b/js/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.js
index 8b4cc327..e52da410 100755
--- a/js/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.js
+++ b/js/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.js
@@ -93,7 +93,7 @@ var InkBottleProperties = exports.InkBottleProperties = Montage.create(ToolPrope
93 } 93 }
94 }, 94 },
95 95
96 draw: { 96 draw: {
97 enumerable: false, 97 enumerable: false,
98 value: function () { 98 value: function () {
99 Object.getPrototypeOf(InkBottleProperties).draw.call(this); 99 Object.getPrototypeOf(InkBottleProperties).draw.call(this);
@@ -123,7 +123,7 @@ var InkBottleProperties = exports.InkBottleProperties = Montage.create(ToolPrope
123 123
124 _subPrepare: { 124 _subPrepare: {
125 value: function() { 125 value: function() {
126 Object.defineBinding(this._strokeMaterial, "items", { 126 Object.defineBinding(this.strokeMaterial, "items", {
127 boundObject: this.application.ninja.appModel, 127 boundObject: this.application.ninja.appModel,
128 boundObjectPropertyPath: "materials", 128 boundObjectPropertyPath: "materials",
129 oneway: false 129 oneway: false
@@ -137,33 +137,19 @@ var InkBottleProperties = exports.InkBottleProperties = Montage.create(ToolPrope
137 val = event.currentTarget.identifier; 137 val = event.currentTarget.identifier;
138 switch(val) { 138 switch(val) {
139 case "useBorderWidth": 139 case "useBorderWidth":
140 if(ch.checked) { 140 this.borderWidth.enabled = ch.checked;
141 this.borderWidthLabel.element.classList.remove("disabled");
142 this._borderWidth.enabled = true;
143 } else {
144 this.borderWidthLabel.element.classList.add("disabled");
145 this._borderWidth.enabled = false;
146 }
147 break; 141 break;
148 case "useBorderStyle": 142 case "useBorderStyle":
149 if(ch.checked) { 143 if(ch.checked) {
150 this.borderStyleLabel.element.classList.remove("disabled"); 144 this.borderStyle.removeAttribute("disabled");
151 this._borderStyle.removeAttribute("disabled")
152 } else { 145 } else {
153 this.borderStyleLabel.element.classList.add("disabled"); 146 this.borderStyle.setAttribute("disabled", "disabled");
154 this._borderStyle.setAttribute("disabled", "disabled");
155 } 147 }
156 break; 148 break;
157 case "useStrokeSize": 149 case "useStrokeSize":
158 if(ch.checked) { 150 this.strokeSize.enabled = ch.checked;
159 this.strokeSizeLabel.element.classList.remove("disabled");
160 this._strokeSize.enabled = true
161 } else {
162 this.strokeSizeLabel.element.classList.add("disabled");
163 this._strokeSize.enabled = false;
164 }
165 break; 151 break;
166 case "useWebGl": 152 case "useWebGL":
167 (ch.checked) ? this._materialsContainer.style["display"] = "" : this._materialsContainer.style["display"] = "none"; 153 (ch.checked) ? this._materialsContainer.style["display"] = "" : this._materialsContainer.style["display"] = "none";
168 break; 154 break;
169 } 155 }