diff options
author | Devaev Maxim <[email protected]> | 2018-07-28 01:20:55 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-07-28 01:20:55 +0300 |
commit | 8b17332ace44e587ee5fda06fd121bd8d8a61c91 (patch) | |
tree | f1bba2330d1bd7d3339f579ac4e23b7859182d03 /kvmd/web/js/session.js | |
parent | 57ea0c285c00259c6f121a9190577d09a5e6b978 (diff) |
about window
Diffstat (limited to 'kvmd/web/js/session.js')
-rw-r--r-- | kvmd/web/js/session.js | 6 |
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); } |