aboutsummaryrefslogtreecommitdiff
path: root/js/components/tools-properties
diff options
context:
space:
mode:
authorArmen Kesablyan2012-06-23 13:44:49 -0700
committerArmen Kesablyan2012-06-23 13:44:49 -0700
commit23aec4144f9d4352ba6d10367288f51d57ba990f (patch)
treea91165b50dd61440ecde8d8bdf9acee265445250 /js/components/tools-properties
parente604a34a8e4de904e58203215aa1278e91f8197b (diff)
downloadninja-23aec4144f9d4352ba6d10367288f51d57ba990f.tar.gz
Text Tool Fix - Can Not Switch Document when Text Tool Initialized
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/components/tools-properties')
-rwxr-xr-xjs/components/tools-properties/text-properties.reel/text-properties.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/js/components/tools-properties/text-properties.reel/text-properties.js b/js/components/tools-properties/text-properties.reel/text-properties.js
index 72a6f034..c5729e98 100755
--- a/js/components/tools-properties/text-properties.reel/text-properties.js
+++ b/js/components/tools-properties/text-properties.reel/text-properties.js
@@ -296,14 +296,18 @@ exports.TextProperties = Montage.create(ToolProperties, {
296 296
297 handleFontSelectionChange: { 297 handleFontSelectionChange: {
298 value: function(e) { 298 value: function(e) {
299 this.application.ninja.stage.textTool.doAction("fontname", this.fontSelection.value);
300 this.application.ninja.stage.textTool.element.focus(); 299 this.application.ninja.stage.textTool.element.focus();
300 this.application.ninja.stage.textTool.doAction("fontname", this.fontSelection.value);
301
302 //Note: Set Font Color on selection to ColorChip Component;
303 //this.this.application.ninja.stage.textTool.foreColor
304
301 } 305 }
302 }, 306 },
303 307
304 handleFontColorChange: { 308 handleFontColorChange: {
305 value: function(e) { 309 value: function(e) {
306 this.application.ninja.stage.textTool.element.style.color = e._event.color.css; 310 this.application.ninja.stage.textTool.foreColor = e._event.color.css;
307 this.application.ninja.stage.textTool.element.focus(); 311 this.application.ninja.stage.textTool.element.focus();
308 //this.application.ninja.stage.textTool.doAction("forecolor",e._event.color.css); 312 //this.application.ninja.stage.textTool.doAction("forecolor",e._event.color.css);
309 313