client/js/full-json.js
changeset 105 810a1c1015df
parent 67 d341117f9370
child 114 110f99eb417e
equal deleted inserted replaced
104:8c4b6b5a8673 105:810a1c1015df
     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         Rkns.$.getJSON(_opts.url, function(_data) {
     9         Rkns.$.getJSON(_opts.url, function(_data) {
    10             _proj.set(_data);
    10             _proj.set(_data, {validate: true});
    11         });
    11         });
    12     }
    12     }
    13     if (!_renkan.read_only) {
    13     if (!_renkan.read_only) {
    14         var _save = function() {
    14         var _save = function() {
    15             var _data = _proj.toJSON();
    15             var _data = _proj.toJSON();