diff options
| author | Alon Levy <alon@pobox.com> | 2015-02-15 20:22:50 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-02-15 20:22:50 +0200 |
| commit | 60abd2f5cd08d3ee43d86e073b62e6f187a0b0cd (patch) | |
| tree | 95d56627a138224577c1a03d7fb53f06623b4456 /src | |
| parent | 849199bc42cab50972fd489b5f2446159fe1e3c0 (diff) | |
client/node_info: remove save button, listen to keyup as well, debounce for half a second. Fixes #43
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/view/node_info.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/view/node_info.js b/src/client/view/node_info.js index 45015a90..da5dbd70 100644 --- a/src/client/view/node_info.js +++ b/src/client/view/node_info.js @@ -58,10 +58,10 @@ function setup_change_handlers() disable_change_handlers(); // auto save style handlers var streams = _.map(_.values(form), function (field) { - return field.asEventStream('change'); + return field.asEventStream('change keyup'); }); var single = _.reduce(streams, function (stream_a, stream_b) { return stream_a.merge(stream_b); }); - change_handlers = [single.debounce(100).onValue(function () { + change_handlers = [single.debounce(500).onValue(function () { commit(); })]; } |
