summaryrefslogtreecommitdiff
path: root/kvmd/web/js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-07-28 01:20:55 +0300
committerDevaev Maxim <[email protected]>2018-07-28 01:20:55 +0300
commit8b17332ace44e587ee5fda06fd121bd8d8a61c91 (patch)
treef1bba2330d1bd7d3339f579ac4e23b7859182d03 /kvmd/web/js
parent57ea0c285c00259c6f121a9190577d09a5e6b978 (diff)
about window
Diffstat (limited to 'kvmd/web/js')
-rw-r--r--kvmd/web/js/session.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/kvmd/web/js/session.js b/kvmd/web/js/session.js
index de2bd2a9..756b5437 100644
--- a/kvmd/web/js/session.js
+++ b/kvmd/web/js/session.js
@@ -7,7 +7,11 @@ var session = new function() {
var http = tools.makeRequest("GET", "/kvmd/info", function() {
if (http.readyState === 4) {
if (http.status === 200) {
- $("kvmd-version").innerHTML = "kvmd " + JSON.parse(http.responseText).result.version.kvmd;
+ var version = JSON.parse(http.responseText).result.version;
+ $("kvmd-version").innerHTML = "kvmd " + version.kvmd;
+ $("about-version-kvmd").innerHTML = version.kvmd;
+ $("about-version-python").innerHTML = version.python;
+ $("about-version-platform").innerHTML = version.platform;
} else {
setTimeout(session.loadKvmdVersion, 1000);
}