aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
authorValerio Virgillito2012-04-04 16:05:49 -0700
committerValerio Virgillito2012-04-04 16:05:49 -0700
commit17ca01f54591187f5c0812c0fd2cb7260afa9639 (patch)
tree98da5ca203a1d9f423be1303645bddc8ec6d2e0a /js/controllers
parente721a7c1009f298a1bd8fea583da14535e039880 (diff)
parentd5b429f4d1fad1f9b83e81d2d742d43ec39bd585 (diff)
downloadninja-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/controllers')
-rwxr-xr-xjs/controllers/document-controller.js9
1 files changed, 0 insertions, 9 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js
index a308f191..0f02ca3c 100755
--- a/js/controllers/document-controller.js
+++ b/js/controllers/document-controller.js
@@ -32,9 +32,6 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
32 _iframeHolder: { value: null, enumerable: false }, 32 _iframeHolder: { value: null, enumerable: false },
33 _textHolder: { value: null, enumerable: false }, 33 _textHolder: { value: null, enumerable: false },
34 _codeMirrorCounter: {value: 1, enumerable: false}, 34 _codeMirrorCounter: {value: 1, enumerable: false},
35
36 canSave:{value: false},//for Save menu state update
37 canSaveAll:{value: false},//for Save All menu state update
38 35
39 activeDocument: { 36 activeDocument: {
40 get: function() { 37 get: function() {
@@ -50,12 +47,6 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
50 if(!!this._activeDocument.editor){ 47 if(!!this._activeDocument.editor){
51 this._activeDocument.editor.focus(); 48 this._activeDocument.editor.focus();
52 } 49 }
53
54 this.canSave = doc.needsSave;
55 this.canSaveAll = doc.needsSave;
56 }else{
57 this.canSave = false;
58 this.canSaveAll = false;
59 } 50 }
60 } 51 }
61 }, 52 },