pommi / CGP

Collectd Graph Panel
http://pommi.nethuis.nl/category/cgp/
GNU General Public License v3.0
236 stars 89 forks source link

js/CGP: Disable page refesh when scrolling or zooming a graph #173

Closed alanswanson closed 3 years ago

alanswanson commented 3 years ago

When scrolling or zooming a graph we want to disable the page refresh because we are trying to look at the detail. Unfortunately Javascript cannot override the refresh meta tag;

<meta http-equiv="refresh" content="{$CONFIG['page_refresh']}">

Except with a window.stop() which is brutal but since the complete RRD data has already been read this is not an issue.

See issue #139 suggesting submitting a PR to refresh RRD data whilst a graph is scrolled or zoomed.

pommi commented 3 years ago

Thank you! 👍