From f8cc5dbc1d7092d588222179af361e24611b8907 Mon Sep 17 00:00:00 2001 From: Pavel Loginov Date: Wed, 11 Dec 2019 09:50:44 +0300 Subject: [PATCH] v3.9.1 --- app/create_db.py | 2 +- inc/overview.js | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/app/create_db.py b/app/create_db.py index c0e5ba5..1468b4c 100644 --- a/app/create_db.py +++ b/app/create_db.py @@ -459,7 +459,7 @@ def update_db_v_3_8_1(**kwargs): def update_ver(**kwargs): con, cur = get_cur() - sql = """update version set version = '3.9'; """ + sql = """update version set version = '3.9.1'; """ try: cur.execute(sql) con.commit() diff --git a/inc/overview.js b/inc/overview.js index 09a4ebe..158bf70 100644 --- a/inc/overview.js +++ b/inc/overview.js @@ -102,6 +102,19 @@ $( function() { $( "#hide-all-groups" ).text("Show all"); $( "#hide-all-groups" ).attr("id", "show-all-groups"); }); + $( "#show-all-haproxy-wi-log" ).click( function() { + $( ".show-haproxy-wi-log" ).show("fast"); + $( "#show-all-haproxy-wi-log" ).text("Show less log"); + $( "#show-all-haproxy-wi-log" ).attr("title", "Show less log"); + $( "#show-all-haproxy-wi-log" ).attr("id", "hide-all-haproxy-wi-log"); + $.getScript('/inc/overview.js'); + }); + $( "#hide-all-haproxy-wi-log" ).click( function() { + $( ".show-haproxy-wi-log" ).hide("fast"); + $( "#hide-all-haproxy-wi-log" ).attr("title", "Show more log"); + $( "#hide-all-haproxy-wi-log" ).text("Show more log"); + $( "#hide-all-haproxy-wi-log" ).attr("id", "show-all-haproxy-wi-log"); + }); if (cur_url[0] == "overview.py" || cur_url[0] == "waf.py" || cur_url[0] == "metrics.py") { $('#secIntervals').css('display', 'none'); }