diff options
author | Valerio Virgillito | 2012-06-05 21:37:49 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-06-05 21:37:49 -0700 |
commit | ca902f0bff569ad441ca4556a7d96500e732a0a4 (patch) | |
tree | 37013895abe363896b816fc0210f25a27f9ff53c /js | |
parent | 5bf88b70e5cfbc68f3d28e8ad412a98be8e55c11 (diff) | |
download | ninja-ca902f0bff569ad441ca4556a7d96500e732a0a4.tar.gz |
disabling the menu when closing all files
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js')
-rwxr-xr-x | js/data/menu-data.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/js/data/menu-data.js b/js/data/menu-data.js index 6c597542..b6350893 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 | }, |