diff options
Diffstat (limited to 'js/controllers/document-controller.js')
-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 84e9f4fc..0fd13be2 100755 --- a/js/controllers/document-controller.js +++ b/js/controllers/document-controller.js | |||
@@ -235,7 +235,7 @@ if(this.activeDocument && this.application.ninja.coreIoApi.cloudAvailable()){ | |||
235 | fileSaveResult: { | 235 | fileSaveResult: { |
236 | value: function (result) { | 236 | value: function (result) { |
237 | if((result.status === 204) || (result.status === 404)){//204=>existing file || 404=>new file... saved | 237 | if((result.status === 204) || (result.status === 404)){//204=>existing file || 404=>new file... saved |
238 | this.activeDocument.needsSave = false; | 238 | this.activeDocument.model.needsSave = false; |
239 | if(this.application.ninja.currentDocument !== null){ | 239 | if(this.application.ninja.currentDocument !== null){ |
240 | //clear Dirty StyleSheets for the saved document | 240 | //clear Dirty StyleSheets for the saved document |
241 | this.application.ninja.stylesController.clearDirtyStyleSheets(this.application.ninja.currentDocument); | 241 | this.application.ninja.stylesController.clearDirtyStyleSheets(this.application.ninja.currentDocument); |
@@ -647,7 +647,7 @@ if(this.activeDocument && this.application.ninja.coreIoApi.cloudAvailable()){ | |||
647 | 647 | ||
648 | handleStyleSheetDirty:{ | 648 | handleStyleSheetDirty:{ |
649 | value:function(){ | 649 | value:function(){ |
650 | this.activeDocument.needsSave = true; | 650 | // this.activeDocument.model.needsSave = true; |
651 | } | 651 | } |
652 | }, | 652 | }, |
653 | 653 | ||