aboutsummaryrefslogtreecommitdiff
path: root/js/panels
diff options
context:
space:
mode:
authorEric Guzman2012-05-31 10:57:09 -0700
committerEric Guzman2012-05-31 10:57:09 -0700
commit4e28e2d2a695d487b1bc127dce0a874691539ca8 (patch)
treeb00dd9e992d1d9cb7bc9076464de76c4a627954e /js/panels
parente09efe3212e86ac794de3fc8ecfc6cdef7b15181 (diff)
parentb7e33c16bab26f8ee0daa61f920cfdbcb7abc6e3 (diff)
downloadninja-4e28e2d2a695d487b1bc127dce0a874691539ca8.tar.gz
Merge branch 'binding' of github.com:dhg637/ninja-internal into binding
Diffstat (limited to 'js/panels')
-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 {