aboutsummaryrefslogtreecommitdiff
path: root/js/controllers/document-controller.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-10 22:40:02 -0700
committerValerio Virgillito2012-05-10 22:40:02 -0700
commitf6f722feecf88c8afe59327eaf8557ce4012abc7 (patch)
tree78d22ad99979c5305481fd20a5ba59f327f9f057 /js/controllers/document-controller.js
parentdcefa362576626813111b7d3a708d28834c22f8a (diff)
downloadninja-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/document-controller.js')
-rwxr-xr-xjs/controllers/document-controller.js4
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