diff options
author | Jose Antonio Marquez | 2012-06-04 15:32:20 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-06-04 15:32:20 -0700 |
commit | 1fa1faf9119e4dd048bd52fd44ab754b6942c319 (patch) | |
tree | 7f3bb3ac58b39efb6129a5ff0fd1ec7e148f9ca9 | |
parent | 3f9cbffd7986cc5f42720ba38ca82c6424ba8916 (diff) | |
download | ninja-1fa1faf9119e4dd048bd52fd44ab754b6942c319.tar.gz |
Fixing saveAll from menu
This was broken, not sure when it broke, but working again.
-rwxr-xr-x | js/controllers/document-controller.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js index a90375af..bb0041eb 100755 --- a/js/controllers/document-controller.js +++ b/js/controllers/document-controller.js | |||
@@ -174,9 +174,9 @@ exports.DocumentController = Montage.create(Component, { | |||
174 | handleExecuteSaveAll: { | 174 | handleExecuteSaveAll: { |
175 | value: function(event) { | 175 | value: function(event) { |
176 | // | 176 | // |
177 | if((typeof this.activeDocument !== "undefined") && this.application.ninja.coreIoApi.cloudAvailable()){ | 177 | if((typeof this.currentDocument !== "undefined") && this.application.ninja.coreIoApi.cloudAvailable()){ |
178 | // | 178 | // |
179 | this.activeDocument.model.saveAll(); | 179 | this.currentDocument.model.saveAll(); |
180 | } else { | 180 | } else { |
181 | //TODO: Add error handling | 181 | //TODO: Add error handling |
182 | } | 182 | } |