From 932c695f4d9d6230a0f4409d82e357fb20a0ccc4 Mon Sep 17 00:00:00 2001 From: TimZ99 Date: Thu, 26 Sep 2019 13:01:29 +0200 Subject: [PATCH] Fixed selected view in graph Fixes #782. --- src/templates/default/static/js/history.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/templates/default/static/js/history.js b/src/templates/default/static/js/history.js index 12a83f81..f75aa9d4 100755 --- a/src/templates/default/static/js/history.js +++ b/src/templates/default/static/js/history.js @@ -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); }); \ No newline at end of file