Fixed selected view in graph

Fixes #782.
This commit is contained in:
TimZ99 2019-09-26 13:01:29 +02:00
parent 6aca2e1077
commit 932c695f4d
No known key found for this signature in database
GPG Key ID: 4D8268DC68E8339D
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@ function updateScale(chart, min, unit) {
$('input[name=timeframe_short]').change(function () {
updateScale(historyShort, parseInt($('input[name=timeframe_short]:checked').val()), $('input[name=timeframe_short]:checked')[0].id);
});
updateScale(historyLong, parseInt($('input[name=timeframe_long]:checked').val()), $('input[name=timeframe_long]:checked')[0].id);
$('input[name=timeframe_long]').change(function () {
updateScale(historyLong, parseInt($('input[name=timeframe_long]:checked').val()), $('input[name=timeframe_long]:checked')[0].id);
});