client/js/full-json.js
changeset 26 2fad193bae98
parent 25 b5ada3bb8e53
child 36 d249d36ecc37
equal deleted inserted replaced
25:b5ada3bb8e53 26:2fad193bae98
    21             success: function(data, textStatus, jqXHR) {
    21             success: function(data, textStatus, jqXHR) {
    22             }
    22             }
    23         });
    23         });
    24         
    24         
    25     }
    25     }
    26     var _thrSave = Rkns._.throttle(_save, 2000);
    26     var _thrSave = Rkns._.throttle(
       
    27         function() {
       
    28             setTimeout(_save, 100)
       
    29         }, 1000);
    27     _load();
    30     _load();
    28     _proj.on("add:nodes add:edges add:users", function(_model) {
    31     _proj.on("add:nodes add:edges add:users", function(_model) {
    29         _model.on("change remove", function(_model) {
    32         _model.on("change remove", function(_model) {
    30             _thrSave();
    33             _thrSave();
    31         });
    34         });