aboutsummaryrefslogtreecommitdiff
path: root/js/panels/properties.reel
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-05-29 10:35:37 -0700
committerNivesh Rajbhandari2012-05-29 10:35:37 -0700
commitf3a019a6aad13c9c4bd84546c91a0b16ad04c0cd (patch)
tree5cf81e18b97f70e55d7b591acfb55c0f061b5ef7 /js/panels/properties.reel
parent2fd6db5f46208a5aa8fa58d090f795e5b7eb99bb (diff)
parent58e454c828abf0b64fa62120359bcd78a0d34ac4 (diff)
downloadninja-f3a019a6aad13c9c4bd84546c91a0b16ad04c0cd.tar.gz
Merge branch 'refs/heads/dom-architecture-master' into Dom-Architecture
Diffstat (limited to 'js/panels/properties.reel')
-rwxr-xr-xjs/panels/properties.reel/properties.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/panels/properties.reel/properties.js b/js/panels/properties.reel/properties.js
index e3ecce10..84b0d589 100755
--- a/js/panels/properties.reel/properties.js
+++ b/js/panels/properties.reel/properties.js
@@ -89,7 +89,7 @@ exports.Properties = Montage.create(Component, {
89 handleBlur: { 89 handleBlur: {
90 value: function(event) { 90 value: function(event) {
91 91
92 if(event.target.id === "elementId") { 92 if(event.target === this.elementId.element) {
93 93
94 // Remove all white spaces from the id 94 // Remove all white spaces from the id
95 this.elementId.value = this.elementId.value.replace(/\s/g, ''); 95 this.elementId.value = this.elementId.value.replace(/\s/g, '');
@@ -106,7 +106,7 @@ exports.Properties = Montage.create(Component, {
106 } else { 106 } else {
107 ElementsMediator.setAttribute(this.application.ninja.currentDocument.model.documentRoot, "id", this.elementId.value, "Change", "pi", this.application.ninja.currentDocument.model.documentRoot.elementModel.id); 107 ElementsMediator.setAttribute(this.application.ninja.currentDocument.model.documentRoot, "id", this.elementId.value, "Change", "pi", this.application.ninja.currentDocument.model.documentRoot.elementModel.id);
108 } 108 }
109 } else if(event.target.id === "elementClass") { 109 } else if(event.target === this.elementClass.element) {
110 if(this.application.ninja.selectedElements.length) { 110 if(this.application.ninja.selectedElements.length) {
111 ElementsMediator.setAttribute(this.application.ninja.selectedElements[0], "class", this.elementClass.value, this.application.ninja.selectedElements[0].className, "pi"); 111 ElementsMediator.setAttribute(this.application.ninja.selectedElements[0], "class", this.elementClass.value, this.application.ninja.selectedElements[0].className, "pi");
112 } else { 112 } else {