diff options
author | Marc Delisle <marc@infomarc.info> | 2012-05-13 19:54:49 +0400 |
---|---|---|
committer | Marc Delisle <marc@infomarc.info> | 2012-05-13 19:54:49 +0400 |
commit | 0264deecd1c38f28908102e65f987ab3e2c00de6 (patch) | |
tree | 61c0a957e70b6d5150c87f11cf67caff714d529e /js | |
parent | 9f6dc058dd4d9847e527d7f6a67bdf211309607d (diff) |
Reset zoom
Diffstat (limited to 'js')
-rw-r--r-- | js/tbl_zoom_plot_jqplot.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/tbl_zoom_plot_jqplot.js b/js/tbl_zoom_plot_jqplot.js index c3dbf46501..9fc299b735 100644 --- a/js/tbl_zoom_plot_jqplot.js +++ b/js/tbl_zoom_plot_jqplot.js @@ -546,5 +546,10 @@ $(document).ready(function() { } currentChart = $.jqplot('querychart', series, options); + + $('button.button-reset').click(function(event) { + event.preventDefault(); + currentChart.resetZoom(); + }); } }); |