aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2016-06-17 17:34:47 +0800
committerIgor Pashev <pashev.igor@gmail.com>2016-06-17 17:34:47 +0800
commite641bcacd0dbb56dddb4eea13dbd15862a0022c9 (patch)
treeef1ad24e06f187b21779755da198be1da7163633
parent9fe740430fd459707f4fd8b0dd073a496326d48e (diff)
downloadmywatch-e641bcacd0dbb56dddb4eea13dbd15862a0022c9.tar.gz
Set window title to server name
-rw-r--r--index.html2
-rw-r--r--static/mywatch.js1
2 files changed, 2 insertions, 1 deletions
diff --git a/index.html b/index.html
index 45a2d6c..6a75cf4 100644
--- a/index.html
+++ b/index.html
@@ -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);