From 3f8f224170937d498d3a03c706494408a6b4bf1d Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Mon, 23 Apr 2012 13:47:35 -0700 Subject: Temporary fix for the PI and Stage when opening the new template. Signed-off-by: Valerio Virgillito --- js/panels/properties.reel/properties.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'js/panels') diff --git a/js/panels/properties.reel/properties.js b/js/panels/properties.reel/properties.js index d9dca538..b21014c1 100755 --- a/js/panels/properties.reel/properties.js +++ b/js/panels/properties.reel/properties.js @@ -73,8 +73,9 @@ exports.Properties = Montage.create(Component, { this.eventManager.addEventListener( "elementChange", this, false); - // For now always assume that the stage is selected by default - if(this.application.ninja.selectedElements.length === 0) { + // For now always assume that the stage is selected by default when opening the old template + // TODO: Remove marker for old template: NINJA-STAGE-REWORK + if(this.application.ninja.selectedElements.length === 0 && this.application.ninja.currentDocument.documentRoot.nodeName.toLowerCase() !== "body") { this.displayStageProperties(); } } -- cgit v1.2.3