aboutsummaryrefslogtreecommitdiff
path: root/js/panels
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-10 22:25:26 -0700
committerValerio Virgillito2012-05-10 22:25:26 -0700
commite7293b28c53b23e64044c29e8451cbf3fc0bd049 (patch)
tree895258b824277d4b9be34bc1b8a500c0e8fbe096 /js/panels
parent90d158a3372b6c8ac2deb8b82070d76135e72397 (diff)
downloadninja-e7293b28c53b23e64044c29e8451cbf3fc0bd049.tar.gz
Partially fixing the body pi and fixing the selection controller
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/panels')
-rwxr-xr-xjs/panels/properties.reel/properties.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/panels/properties.reel/properties.js b/js/panels/properties.reel/properties.js
index 8c2daa14..6f43ce03 100755
--- a/js/panels/properties.reel/properties.js
+++ b/js/panels/properties.reel/properties.js
@@ -78,6 +78,7 @@ exports.Properties = Montage.create(Component, {
78 if(this.application.ninja.selectedElements.length === 0 && this.application.ninja.currentDocument.documentRoot.nodeName.toLowerCase() !== "body") { 78 if(this.application.ninja.selectedElements.length === 0 && this.application.ninja.currentDocument.documentRoot.nodeName.toLowerCase() !== "body") {
79 this.displayStageProperties(); 79 this.displayStageProperties();
80 } 80 }
81 this.displayElementProperties(this.application.ninja.currentDocument.documentRoot);
81 } 82 }
82 }, 83 },
83 84
@@ -174,8 +175,9 @@ exports.Properties = Montage.create(Component, {
174 handleSelectionChange: { 175 handleSelectionChange: {
175 value: function(event) { 176 value: function(event) {
176 if(event.detail.isDocument) { 177 if(event.detail.isDocument) {
177 if(this.application.ninja.currentDocument.documentRoot.nodeName.toLowerCase() === "body") return; 178// if(this.application.ninja.currentDocument.documentRoot.nodeName.toLowerCase() === "body") return;
178 this.displayStageProperties(); 179// this.displayStageProperties();
180 this.displayElementProperties(this.application.ninja.currentDocument.documentRoot);
179 } else { 181 } else {
180 if(this.application.ninja.selectedElements.length === 1) { 182 if(this.application.ninja.selectedElements.length === 1) {
181 this.displayElementProperties(this.application.ninja.selectedElements[0]); 183 this.displayElementProperties(this.application.ninja.selectedElements[0]);