client/js/full-json.js
changeset 543 5f7bebdcfc0d
parent 516 7d1d44b53af5
equal deleted inserted replaced
534:c25e7c9e26a0 543:5f7bebdcfc0d
     4     var _proj = _renkan.project;
     4     var _proj = _renkan.project;
     5     if (typeof _opts.http_method === "undefined") {
     5     if (typeof _opts.http_method === "undefined") {
     6         _opts.http_method = 'PUT';
     6         _opts.http_method = 'PUT';
     7     }
     7     }
     8     var _load = function() {
     8     var _load = function() {
     9         _renkan.renderer.redrawActive = false;
       
    10         _proj.set({
     9         _proj.set({
    11             loadingStatus : true
    10             loadingStatus : true
    12         });
    11         });
    13         Rkns.$.getJSON(_opts.url, function(_data) {
    12         Rkns.$.getJSON(_opts.url, function(_data) {
    14             _renkan.dataloader.load(_data);
    13             _renkan.dataloader.load(_data);
       
    14             
    15             _proj.set({
    15             _proj.set({
    16                 loadingStatus : false
    16                 loadingStatus : false
    17             });
    17             });
    18             _proj.set({
    18             _proj.set({
    19                 saveStatus : 0
    19                 saveStatus : 0
    20             });
    20             });
    21             _renkan.renderer.redrawActive = true;
       
    22         });
    21         });
    23     };
    22     };
    24     var _save = function() {
    23     var _save = function() {
    25         _proj.set({
    24         _proj.set({
    26             saveStatus : 2
    25             saveStatus : 2