diff options
author | Ananya Sen | 2012-02-28 15:07:49 -0800 |
---|---|---|
committer | Ananya Sen | 2012-02-28 15:07:49 -0800 |
commit | 1766c6b17e2311fcd21c2be6608c7dcdc0a9b23a (patch) | |
tree | 62cb29918a12ef27b760f4300c79ef46bc8fbddd /js/panels | |
parent | 866df4801b9e77a0155ffbfb87adbc79a94ce9a5 (diff) | |
download | ninja-1766c6b17e2311fcd21c2be6608c7dcdc0a9b23a.tar.gz |
persist selections while switching documents
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/panels')
-rwxr-xr-x | js/panels/properties/content.reel/content.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/panels/properties/content.reel/content.js b/js/panels/properties/content.reel/content.js index 8fa33a75..e92fbcb2 100755 --- a/js/panels/properties/content.reel/content.js +++ b/js/panels/properties/content.reel/content.js | |||
@@ -55,6 +55,8 @@ exports.Content = Montage.create(Component, { | |||
55 | } | 55 | } |
56 | 56 | ||
57 | this.eventManager.addEventListener("openDocument", this, false); | 57 | this.eventManager.addEventListener("openDocument", this, false); |
58 | |||
59 | this.eventManager.addEventListener("switchDocument", this, false); | ||
58 | } | 60 | } |
59 | }, | 61 | }, |
60 | 62 | ||
@@ -74,6 +76,15 @@ exports.Content = Montage.create(Component, { | |||
74 | } | 76 | } |
75 | }, | 77 | }, |
76 | 78 | ||
79 | handleSwitchDocument: { | ||
80 | value: function(){ | ||
81 | // For now always assume that the stage is selected by default | ||
82 | if(this.application.ninja.selectedElements.length === 0) { | ||
83 | this.displayStageProperties(); | ||
84 | } | ||
85 | } | ||
86 | }, | ||
87 | |||
77 | /** | 88 | /** |
78 | * Blur and Key up to handle change in the Element ID field. | 89 | * Blur and Key up to handle change in the Element ID field. |
79 | */ | 90 | */ |