diff options
author | Valerio Virgillito | 2012-05-10 22:40:02 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-10 22:40:02 -0700 |
commit | f6f722feecf88c8afe59327eaf8557ce4012abc7 (patch) | |
tree | 78d22ad99979c5305481fd20a5ba59f327f9f057 /js/controllers | |
parent | dcefa362576626813111b7d3a708d28834c22f8a (diff) | |
download | ninja-f6f722feecf88c8afe59327eaf8557ce4012abc7.tar.gz |
Fixing the dirty document flag. Disabling the stylesheets dirty flag because === true on document open.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/controllers')
-rwxr-xr-x | js/controllers/document-controller.js | 4 | ||||
-rwxr-xr-x | js/controllers/elements/shapes-controller.js | 4 |
2 files changed, 4 insertions, 4 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 | ||
diff --git a/js/controllers/elements/shapes-controller.js b/js/controllers/elements/shapes-controller.js index e9a5f865..38f133b5 100755 --- a/js/controllers/elements/shapes-controller.js +++ b/js/controllers/elements/shapes-controller.js | |||
@@ -213,7 +213,7 @@ exports.ShapesController = Montage.create(CanvasController, { | |||
213 | default: | 213 | default: |
214 | CanvasController.setProperty(el, p, value); | 214 | CanvasController.setProperty(el, p, value); |
215 | } | 215 | } |
216 | this.application.ninja.documentController.activeDocument.needsSave = true; | 216 | this.application.ninja.documentController.activeDocument.model.needsSave = true; |
217 | } | 217 | } |
218 | }, | 218 | }, |
219 | 219 | ||
@@ -559,7 +559,7 @@ exports.ShapesController = Montage.create(CanvasController, { | |||
559 | } | 559 | } |
560 | } | 560 | } |
561 | el.elementModel.shapeModel.GLWorld.render(); | 561 | el.elementModel.shapeModel.GLWorld.render(); |
562 | this.application.ninja.documentController.activeDocument.needsSave = true; | 562 | this.application.ninja.documentController.activeDocument.model.needsSave = true; |
563 | } | 563 | } |
564 | }, | 564 | }, |
565 | 565 | ||