From e641bcacd0dbb56dddb4eea13dbd15862a0022c9 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Fri, 17 Jun 2016 17:34:47 +0800 Subject: Set window title to server name --- index.html | 2 +- static/mywatch.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 45a2d6c..6a75cf4 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ - MySQL Process Overview + MyWatch diff --git a/static/mywatch.js b/static/mywatch.js index 7ea728e..02d0bf6 100644 --- a/static/mywatch.js +++ b/static/mywatch.js @@ -75,6 +75,7 @@ $(function() { }); $("#serverList a").on("click", function() { var server = $(this).text(); + document.title = server + ' — ' + 'MyWatch'; $(this).parent().parent().find('.active').removeClass('active'); $(this).parent().addClass('active'); clearInterval(interval); -- cgit v1.2.3