db_graph.js: move variable where it's used

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
XhmikosR
2020-05-23 13:14:47 +03:00
committed by GitHub
parent 34f6c753c7
commit 138e4b6e1a

View File

@@ -13,8 +13,6 @@ var end__ = moment();
var until = moment(end__).utc().valueOf() / 1000;
var interval = 0;
var timeoutWarning = $("#timeoutWarning");
var dateformat = "MMMM Do YYYY, HH:mm";
$(function () {
@@ -81,6 +79,8 @@ function compareNumbers(a, b) {
}
function updateQueriesOverTime() {
var timeoutWarning = $("#timeoutWarning");
$("#queries-over-time .overlay").show();
timeoutWarning.show();