diff options
author | Ananya Sen | 2012-03-22 10:28:34 -0700 |
---|---|---|
committer | Ananya Sen | 2012-03-22 10:28:34 -0700 |
commit | 61a419422b1a05a779fd9a66c53de3fa8ab5f65a (patch) | |
tree | 54fca046a7d42577397f11f1b4841cfc18d72028 /js/document | |
parent | 57cc00a5ef3ab525e54a030d7692b2d9eefaa68b (diff) | |
download | ninja-61a419422b1a05a779fd9a66c53de3fa8ab5f65a.tar.gz |
- enable/disable save, saveAs, saveAll, close, closeAll as per documents open
- added close file and close all menu items
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Conflicts:
js/helper-classes/3D/draw-utils.js
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/document')
-rwxr-xr-x | js/document/text-document.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/js/document/text-document.js b/js/document/text-document.js index 88464d87..54a53999 100755 --- a/js/document/text-document.js +++ b/js/document/text-document.js | |||
@@ -163,7 +163,13 @@ var TextDocument = exports.TextDocument = Montage.create(Component, { | |||
163 | 163 | ||
164 | needsSave: { | 164 | needsSave: { |
165 | get: function() { return this._needsSave; }, | 165 | get: function() { return this._needsSave; }, |
166 | set: function(value) { this._needsSave = value } | 166 | set: function(value) { |
167 | var i=0, canSaveAll=false; | ||
168 | this._needsSave = value; | ||
169 | |||
170 | this.application.ninja.documentController.canSave = value;//for save menu state update | ||
171 | this.application.ninja.documentController.canSaveAll = value;//for save menu state update..currently save all is tried to the current document only | ||
172 | } | ||
167 | }, | 173 | }, |
168 | 174 | ||
169 | callback: { | 175 | callback: { |