diff options
| author | Alon Levy <alon@pobox.com> | 2015-02-06 12:21:48 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-02-06 12:21:52 +0200 |
| commit | b9797ed3e4d887c15acdfd48fca851d3c3dc9158 (patch) | |
| tree | becf27752c9ebdc4529254d9c411da42775992ff /src/client | |
| parent | ebfbcd315e4cfb5324fb848d588948d3cdb25ddf (diff) | |
client: bacon not loaded, use jquery instead (demo hack)
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/view/graph_view.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index 578c05e3..96ef4f0d 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -121,15 +121,15 @@ function GraphView(spec) { function redraw__set_on_checkbox_change() { $(function () { - var checkboxes = $('.dropdown-item label input').asEventStream('click').onValue(function (_) { + var checkboxes = $('.dropdown-item label input').on('click', function (_) { read_checkboxes(); console.log(filter_states); update_view(true); }); - $('.dropdown-item.dropdown-menu-heading').asEventStream('click').onValue(function (_) { + $('.dropdown-item.dropdown-menu-heading').on('click', function (_) { var hidden = $('.dropdown-item.dropdown-item-type[style="display:none"]').length > 0; $('.dropdown-item.dropdown-item-type').attr('style', 'display:' + (hidden ? '' : 'none')); - }) + }); }); } |
