aboutsummaryrefslogtreecommitdiff
path: root/js/document
diff options
context:
space:
mode:
authorPushkar Joshi2012-04-03 15:07:07 -0700
committerPushkar Joshi2012-04-03 15:07:07 -0700
commit12f988a32da12731ab35104128e396a6f388aeae (patch)
tree1333043a3d5573f32bcaaf8df9955aef5e2e9720 /js/document
parent79fb912bdaa22b8107bbddc93d1779820af80cf9 (diff)
parentc6de22bf42be90b403491b5f87b1818d9020310c (diff)
downloadninja-12f988a32da12731ab35104128e396a6f388aeae.tar.gz
Merge branch 'master' into pentool
Diffstat (limited to 'js/document')
-rwxr-xr-xjs/document/text-document.js8
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: {