client/js/save-once.js
changeset 543 5f7bebdcfc0d
parent 516 7d1d44b53af5
equal deleted inserted replaced
534:c25e7c9e26a0 543:5f7bebdcfc0d
    18         }
    18         }
    19         Rkns.$.ajax({
    19         Rkns.$.ajax({
    20             url: _opts.url,
    20             url: _opts.url,
    21             data: getdata,
    21             data: getdata,
    22             beforeSend: function(){
    22             beforeSend: function(){
    23                 _renkan.renderer.redrawActive = false;
       
    24             	_proj.set({loadingStatus:true});
    23             	_proj.set({loadingStatus:true});
    25             },
    24             },
    26             success: function(_data) {
    25             success: function(_data) {
    27                 _renkan.dataloader.load(_data);
    26                 _renkan.dataloader.load(_data);
    28                 _proj.set({loadingStatus:false});
    27                 _proj.set({loadingStatus:false});
    29                 _proj.set({saveStatus:0});
    28                 _proj.set({saveStatus:0});
    30                 _renkan.renderer.redrawActive = true;
       
    31             }
    29             }
    32         });
    30         });
    33     };
    31     };
    34     var _save = function() {
    32     var _save = function() {
    35         _proj.set("saved_at", new Date());
    33         _proj.set("saved_at", new Date());