summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-11-24 07:54:29 +0300
committerDevaev Maxim <[email protected]>2018-11-24 07:54:29 +0300
commit610237de15c3ca2001d1e3a67c61d78f6fbda880 (patch)
tree6d7b607cb8dcab2740a1a6ec514d2baf66647f5b
parentf8bd0eca6a92618fc38d6db5c26114111d2df37f (diff)
fixed html titles
-rw-r--r--web/js/index/main.js4
-rw-r--r--web/js/kvm/session.js5
2 files changed, 8 insertions, 1 deletions
diff --git a/web/js/index/main.js b/web/js/index/main.js
index b3e9317c..5b576b6a 100644
--- a/web/js/index/main.js
+++ b/web/js/index/main.js
@@ -49,6 +49,10 @@ function __loadKvmdInfo() {
if (info.meta && info.meta.server && info.meta.server.host) {
$("kvmd-meta-server-host").innerHTML = info.meta.server.host;
+ document.title = "Pi-KVM Index: " + info.meta.server.host;
+ } else {
+ $("kvmd-meta-server-host").innerHTML = "";
+ document.title = "Pi-KVM Index";
}
} else {
setTimeout(__loadKvmdInfo, 1000);
diff --git a/web/js/kvm/session.js b/web/js/kvm/session.js
index bcc97fab..cbf268d9 100644
--- a/web/js/kvm/session.js
+++ b/web/js/kvm/session.js
@@ -32,8 +32,11 @@ function Session() {
${text}
`;
if (state.meta.server && state.meta.server.host) {
- document.title = "Pi-KVM Session - " + state.meta.server.host;
$("kvmd-meta-server-host").innerHTML = "Server: " + state.meta.server.host;
+ document.title = "Pi-KVM Session: " + state.meta.server.host;
+ } else {
+ $("kvmd-meta-server-host").innerHTML = "";
+ document.title = "Pi-KVM Session";
}
}
$("about-version-kvmd").innerHTML = state.version.kvmd;