client/js/full-json.js
changeset 160 408da84d4dc0
parent 116 07f9fc847d5d
child 170 603ffa4c6fa5
equal deleted inserted replaced
159:1796e0220bef 160:408da84d4dc0
    12         });
    12         });
    13     }
    13     }
    14     var _save = function() {
    14     var _save = function() {
    15         var _data = _proj.toJSON();
    15         var _data = _proj.toJSON();
    16         if (!_renkan.read_only) {
    16         if (!_renkan.read_only) {
    17         	Rkns.$.ajax({
    17             Rkns.$.ajax({
    18 	            type: _opts.http_method,
    18                 type: _opts.http_method,
    19 	            url: _opts.url,
    19                 url: _opts.url,
    20 	            contentType: "application/json",
    20                 contentType: "application/json",
    21 	            data: JSON.stringify(_data),
    21                 data: JSON.stringify(_data),
    22 	            success: function(data, textStatus, jqXHR) {
    22                 success: function(data, textStatus, jqXHR) {
    23 	            }
    23                 }
    24 	        });
    24             });
    25         }
    25         }
    26         
    26         
    27     }
    27     }
    28     var _thrSave = Rkns._.throttle(
    28     var _thrSave = Rkns._.throttle(
    29         function() {
    29         function() {