aboutsummaryrefslogtreecommitdiff
path: root/js/panels/properties
diff options
context:
space:
mode:
authorAnanya Sen2012-02-28 15:15:27 -0800
committerAnanya Sen2012-02-28 15:15:27 -0800
commit5ab7efb9949e486395659c383064a08821febdae (patch)
tree69c91481dee42ab59dca874815d0d283bf52e8c4 /js/panels/properties
parent676b4e2d7091ac63ce06f51be686b902b940bfff (diff)
downloadninja-5ab7efb9949e486395659c383064a08821febdae.tar.gz
persist selections while switching documents
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/panels/properties')
-rwxr-xr-xjs/panels/properties/content.reel/content.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/panels/properties/content.reel/content.js b/js/panels/properties/content.reel/content.js
index 8fa33a75..9b9b7108 100755
--- a/js/panels/properties/content.reel/content.js
+++ b/js/panels/properties/content.reel/content.js
@@ -55,6 +55,7 @@ exports.Content = Montage.create(Component, {
55 } 55 }
56 56
57 this.eventManager.addEventListener("openDocument", this, false); 57 this.eventManager.addEventListener("openDocument", this, false);
58 this.eventManager.addEventListener("switchDocument", this, false);
58 } 59 }
59 }, 60 },
60 61
@@ -74,6 +75,15 @@ exports.Content = Montage.create(Component, {
74 } 75 }
75 }, 76 },
76 77
78 handleSwitchDocument: {
79 value: function(){
80 // For now always assume that the stage is selected by default
81 if(this.application.ninja.selectedElements.length === 0) {
82 this.displayStageProperties();
83 }
84 }
85 },
86
77 /** 87 /**
78 * Blur and Key up to handle change in the Element ID field. 88 * Blur and Key up to handle change in the Element ID field.
79 */ 89 */