diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2016-06-17 17:34:47 +0800 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2016-06-17 17:34:47 +0800 |
commit | e641bcacd0dbb56dddb4eea13dbd15862a0022c9 (patch) | |
tree | ef1ad24e06f187b21779755da198be1da7163633 | |
parent | 9fe740430fd459707f4fd8b0dd073a496326d48e (diff) | |
download | mywatch-e641bcacd0dbb56dddb4eea13dbd15862a0022c9.tar.gz |
Set window title to server name
-rw-r--r-- | index.html | 2 | ||||
-rw-r--r-- | static/mywatch.js | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -8,7 +8,7 @@ <link href="static/external/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <link href="static/external/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet"> <link href="static/mywatch.css" rel="stylesheet"> - <title>MySQL Process Overview</title> + <title>MyWatch</title> </head> <body> 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); |