diff options
Diffstat (limited to 'js/data')
-rwxr-xr-x | js/data/menu-data.js | 12 | ||||
-rwxr-xr-x | js/data/tools-data.js | 4 |
2 files changed, 11 insertions, 5 deletions
diff --git a/js/data/menu-data.js b/js/data/menu-data.js index c47117f8..386d5d87 100755 --- a/js/data/menu-data.js +++ b/js/data/menu-data.js | |||
@@ -24,9 +24,15 @@ exports.MenuData = Montage.create(Component, { | |||
24 | 24 | ||
25 | this._currentDocument = value; | 25 | this._currentDocument = value; |
26 | 26 | ||
27 | this.documentEnabledIndices.forEach(function(index) { | 27 | if(!this._currentDocument) { |
28 | index.enabled = true; | 28 | this.documentEnabledIndices.forEach(function(index) { |
29 | }); | 29 | index.enabled = false; |
30 | }); | ||
31 | } else { | ||
32 | this.documentEnabledIndices.forEach(function(index) { | ||
33 | index.enabled = true; | ||
34 | }); | ||
35 | } | ||
30 | 36 | ||
31 | } | 37 | } |
32 | }, | 38 | }, |
diff --git a/js/data/tools-data.js b/js/data/tools-data.js index 05455efe..138f9f4d 100755 --- a/js/data/tools-data.js +++ b/js/data/tools-data.js | |||
@@ -104,7 +104,7 @@ exports.ToolsData = Montage.create(Montage, { | |||
104 | "properties": "penProperties", | 104 | "properties": "penProperties", |
105 | "spriteSheet": true, | 105 | "spriteSheet": true, |
106 | "action": "PenTool", | 106 | "action": "PenTool", |
107 | "toolTip": "Pen Tool", | 107 | "toolTip": "Pen Tool (P)", |
108 | "cursor": "auto", | 108 | "cursor": "auto", |
109 | "lastInGroup": false, | 109 | "lastInGroup": false, |
110 | "container": false, | 110 | "container": false, |
@@ -165,7 +165,7 @@ exports.ToolsData = Montage.create(Montage, { | |||
165 | "properties": "brushProperties", | 165 | "properties": "brushProperties", |
166 | "spriteSheet": true, | 166 | "spriteSheet": true, |
167 | "action": "BrushTool", | 167 | "action": "BrushTool", |
168 | "toolTip": "Brush Tool", | 168 | "toolTip": "Brush Tool (B)", |
169 | "cursor": "url('images/tools/brush_down.png') 9 17, default", | 169 | "cursor": "url('images/tools/brush_down.png') 9 17, default", |
170 | "lastInGroup": false, | 170 | "lastInGroup": false, |
171 | "container": false, | 171 | "container": false, |