rename save_status to saveStatus to fit with the client version
authorrougeronj
Tue, 22 Sep 2015 15:05:28 +0200
changeset 646 c5683bd882a8
parent 645 5c1b6455c110
child 647 37220b1a35e2
rename save_status to saveStatus to fit with the client version
src/hdalab/static/hdalab/js/renkan-manual-save.js
--- a/src/hdalab/static/hdalab/js/renkan-manual-save.js	Thu Jul 16 19:16:19 2015 +0200
+++ b/src/hdalab/static/hdalab/js/renkan-manual-save.js	Tue Sep 22 15:05:28 2015 +0200
@@ -32,7 +32,7 @@
                 }
                 _proj.set(_data, {validate: true});
                 _proj.set({loading_status:false});
-                _proj.set({save_status:0});
+                _proj.set({saveStatus:0});
                 _renkan.renderer.fixSize(true);
 
                 if(_opts.user_authenticated==true){
@@ -55,7 +55,7 @@
             success: function(data, textStatus, jqXHR) {
                 $(window).off("beforeunload", _onLeave);
                 _saveWarn = false;
-                _proj.set({save_status:0});
+                _proj.set({saveStatus:0});
 
                 if(data.substr(0,6)=="rk_id="){
                     _opts.url = _opts.url.split("?")[0] + "?" + data;
@@ -71,7 +71,7 @@
         }
     }
     var _checkLeave = function() {
-        _proj.set({save_status:1});
+        _proj.set({saveStatus:1});
 
         var title = _proj.get("title");
         if (title && _proj.get("nodes").length) {
@@ -90,7 +90,7 @@
     _load();
     
     var modelChanged = function(_model) {
-        if(!(_model.changedAttributes.length == 1 && _model.hasChanged('save_status'))) {
+        if(!(_model.changedAttributes.length == 1 && _model.hasChanged('saveStatus'))) {
             _checkLeave();
             _changeDispositionDisable()
         }