aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-16 20:49:40 -0700
committerValerio Virgillito2012-05-16 20:49:40 -0700
commitb1e5ef1949eeddc39a1e9570a65612879cbdadef (patch)
treec26cab2707e7600730e869fbc315662ef518bcb8 /js
parent9d001ec773c9568e9f825468631013fc9b20eb7e (diff)
downloadninja-b1e5ef1949eeddc39a1e9570a65612879cbdadef.tar.gz
clearing the needs save flag on save.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js')
-rwxr-xr-xjs/controllers/document-controller.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js
index 1e894f02..ecb988ff 100755
--- a/js/controllers/document-controller.js
+++ b/js/controllers/document-controller.js
@@ -177,6 +177,8 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
177 testCallback: { 177 testCallback: {
178 value: function (value) { 178 value: function (value) {
179 console.log(value); 179 console.log(value);
180 //TODO: Move this to the model.save()
181 this.activeDocument.model.needsSave = false;
180 } 182 }
181 }, 183 },
182 //////////////////////////////////////////////////////////////////// 184 ////////////////////////////////////////////////////////////////////