client/js/full-json.js
changeset 25 b5ada3bb8e53
parent 24 121a24be9da4
child 26 2fad193bae98
equal deleted inserted replaced
24:121a24be9da4 25:b5ada3bb8e53
     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             console.log("Setting data");
       
    11             _proj.set(_data);
    10             _proj.set(_data);
       
    11             _renkan.renderer.autoScale();
    12         });
    12         });
    13     }
    13     }
    14     var _save = function() {
    14     var _save = function() {
    15         var _data = _proj.toJSON();
    15         var _data = _proj.toJSON();
    16         Rkns.$.ajax({
    16         Rkns.$.ajax({