diff options
Diffstat (limited to 'js/panels/properties.reel/properties.js')
-rwxr-xr-x | js/panels/properties.reel/properties.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/js/panels/properties.reel/properties.js b/js/panels/properties.reel/properties.js index b21014c1..507770f6 100755 --- a/js/panels/properties.reel/properties.js +++ b/js/panels/properties.reel/properties.js | |||
@@ -101,7 +101,6 @@ exports.Properties = Montage.create(Component, { | |||
101 | */ | 101 | */ |
102 | handleBlur: { | 102 | handleBlur: { |
103 | value: function(event) { | 103 | value: function(event) { |
104 | |||
105 | if(event.target.id === "elementId") { | 104 | if(event.target.id === "elementId") { |
106 | 105 | ||
107 | // Remove all white spaces from the id | 106 | // Remove all white spaces from the id |
@@ -126,6 +125,7 @@ exports.Properties = Montage.create(Component, { | |||
126 | ElementsMediator.setAttribute(this.application.ninja.currentDocument.documentRoot, "class", this.elementClass.value, "Change", "pi", this.application.ninja.currentDocument.documentRoot.elementModel.elementClass); | 125 | ElementsMediator.setAttribute(this.application.ninja.currentDocument.documentRoot, "class", this.elementClass.value, "Change", "pi", this.application.ninja.currentDocument.documentRoot.elementModel.elementClass); |
127 | } | 126 | } |
128 | } | 127 | } |
128 | NJevent("updatedID",this.application.ninja.selectedElements[0]); | ||
129 | } | 129 | } |
130 | }, | 130 | }, |
131 | 131 | ||
@@ -174,6 +174,7 @@ exports.Properties = Montage.create(Component, { | |||
174 | handleSelectionChange: { | 174 | handleSelectionChange: { |
175 | value: function(event) { | 175 | value: function(event) { |
176 | if(event.detail.isDocument) { | 176 | if(event.detail.isDocument) { |
177 | if(this.application.ninja.currentDocument.documentRoot.nodeName.toLowerCase() === "body") return; | ||
177 | this.displayStageProperties(); | 178 | this.displayStageProperties(); |
178 | } else { | 179 | } else { |
179 | if(this.application.ninja.selectedElements.length === 1) { | 180 | if(this.application.ninja.selectedElements.length === 1) { |
@@ -207,11 +208,7 @@ exports.Properties = Montage.create(Component, { | |||
207 | this.threeD.zAngle = ElementsMediator.get3DProperty(stage, "zAngle"); | 208 | this.threeD.zAngle = ElementsMediator.get3DProperty(stage, "zAngle"); |
208 | } | 209 | } |
209 | 210 | ||
210 | if(ElementsMediator.getProperty(stage, "-webkit-transform-style") === "preserve-3d") { | 211 | this.threeD.flatten = ElementsMediator.getProperty(stage, "-webkit-transform-style") !== "preserve-3d"; |
211 | this.threeD.flatten = false; | ||
212 | } else { | ||
213 | this.threeD.flatten = true; | ||
214 | } | ||
215 | 212 | ||
216 | if(this.customPi !== stage.elementModel.pi) { | 213 | if(this.customPi !== stage.elementModel.pi) { |
217 | // We need to unregister color chips from the previous selection from the Color Model | 214 | // We need to unregister color chips from the previous selection from the Color Model |