From 8b17332ace44e587ee5fda06fd121bd8d8a61c91 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Sat, 28 Jul 2018 01:20:55 +0300 Subject: about window --- kvmd/web/js/session.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'kvmd/web/js') 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); } -- cgit v1.2.3