diff options
author | Nivesh Rajbhandari | 2012-03-13 09:30:58 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-03-13 09:30:58 -0700 |
commit | efb92cf52680d31f05fed3757e74862592cc2d4c (patch) | |
tree | 301c16c9e6b6aa2ff7a70f579e9dbc9e784f9b13 /js/components/layout/tools-properties.reel/tools-properties.js | |
parent | 90e2f71d730fb4f4ec07b40d2c2569e6c46e8a1c (diff) | |
parent | c24f58c10231c30d3a8a4c9fb9a4f395dd746180 (diff) | |
download | ninja-efb92cf52680d31f05fed3757e74862592cc2d4c.tar.gz |
Merge branch 'refs/heads/ninja-internal' into ToolFixes
Diffstat (limited to 'js/components/layout/tools-properties.reel/tools-properties.js')
-rwxr-xr-x | js/components/layout/tools-properties.reel/tools-properties.js | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/js/components/layout/tools-properties.reel/tools-properties.js b/js/components/layout/tools-properties.reel/tools-properties.js index 104aabb7..47945b58 100755 --- a/js/components/layout/tools-properties.reel/tools-properties.js +++ b/js/components/layout/tools-properties.reel/tools-properties.js | |||
@@ -9,10 +9,29 @@ var Component = require("montage/ui/component").Component; | |||
9 | 9 | ||
10 | exports.ToolsProperties = Montage.create(Component, { | 10 | exports.ToolsProperties = Montage.create(Component, { |
11 | 11 | ||
12 | disabled: { | ||
13 | value: true | ||
14 | }, | ||
15 | |||
16 | handleCloseDocument: { | ||
17 | value: function(){ | ||
18 | if(!this.application.ninja.documentController.activeDocument) { | ||
19 | this.disabled = true; | ||
20 | } | ||
21 | } | ||
22 | }, | ||
23 | |||
24 | handleOpenDocument: { | ||
25 | value: function() { | ||
26 | this.disabled = false; | ||
27 | } | ||
28 | }, | ||
29 | |||
12 | prepareForDraw: { | 30 | prepareForDraw: { |
13 | enumerable: false, | 31 | enumerable: false, |
14 | value: function() { | 32 | value: function() { |
15 | //this.selectedTool = this.application.toolsData.selectedTool; | 33 | this.eventManager.addEventListener( "openDocument", this, false); |
34 | this.eventManager.addEventListener( "closeDocument", this, false); | ||
16 | } | 35 | } |
17 | }, | 36 | }, |
18 | 37 | ||