diff options
author | Valerio Virgillito | 2012-04-04 16:05:49 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-04-04 16:05:49 -0700 |
commit | 17ca01f54591187f5c0812c0fd2cb7260afa9639 (patch) | |
tree | 98da5ca203a1d9f423be1303645bddc8ec6d2e0a /js/document | |
parent | e721a7c1009f298a1bd8fea583da14535e039880 (diff) | |
parent | d5b429f4d1fad1f9b83e81d2d742d43ec39bd585 (diff) | |
download | ninja-17ca01f54591187f5c0812c0fd2cb7260afa9639.tar.gz |
Merge pull request #157 from ananyasen/ninja-internal-master-patch1
[CR] Keep Save related menu items always enabled, if there is an open do...
Diffstat (limited to 'js/document')
-rwxr-xr-x | js/document/text-document.js | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/js/document/text-document.js b/js/document/text-document.js index 54a53999..2574b67c 100755 --- a/js/document/text-document.js +++ b/js/document/text-document.js | |||
@@ -164,11 +164,7 @@ var TextDocument = exports.TextDocument = Montage.create(Component, { | |||
164 | needsSave: { | 164 | needsSave: { |
165 | get: function() { return this._needsSave; }, | 165 | get: function() { return this._needsSave; }, |
166 | set: function(value) { | 166 | set: function(value) { |
167 | var i=0, canSaveAll=false; | ||
168 | this._needsSave = value; | 167 | 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 | } | 168 | } |
173 | }, | 169 | }, |
174 | 170 | ||