summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-olsr/luasrc/view/status-olsr/overview.htm
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-11-14 20:50:03 +0100
committerGitHub <noreply@github.com>2018-11-14 20:50:03 +0100
commitceb342dc8de0235686bfceae7cd3948cb3c2f527 (patch)
treef8f68ad60960d8e8575d7fa8be4a69b1c77e34d5 /applications/luci-app-olsr/luasrc/view/status-olsr/overview.htm
parente442bfe0ae51bd381045221391831703aa8fa182 (diff)
parent5fd51f05a8f6bf7da7247c8c568080db625efa96 (diff)
Merge pull request #2259 from pmelange/luci-app-olsr-new-json-lib
update luci-app-olsr to the new jsoninfo library
Diffstat (limited to 'applications/luci-app-olsr/luasrc/view/status-olsr/overview.htm')
-rw-r--r--applications/luci-app-olsr/luasrc/view/status-olsr/overview.htm12
1 files changed, 6 insertions, 6 deletions
diff --git a/applications/luci-app-olsr/luasrc/view/status-olsr/overview.htm b/applications/luci-app-olsr/luasrc/view/status-olsr/overview.htm
index f205edc16d..7bfd73df20 100644
--- a/applications/luci-app-olsr/luasrc/view/status-olsr/overview.htm
+++ b/applications/luci-app-olsr/luasrc/view/status-olsr/overview.htm
@@ -61,12 +61,12 @@ XHR.poll(10, '<%=REQUEST_URI%>/json', { },
if (e = document.getElementById('version'))
var version;
var date;
- if (info.v4.config.olsrdVersion != undefined) {
- version = info.v4.config.olsrdVersion
- date = info.v4.config.olsrdBuildDate
- } else if (info.v6.config.olsrdVersion != undefined) {
- version = info.v6.config.olsrdVersion
- date = info.v6.config.olsrdBuildDate
+ if (info.v4.version.version != undefined) {
+ version = info.v4.version.version
+ date = info.v4.version.date
+ } else if (info.v6.version.version != undefined) {
+ version = info.v6.version.version
+ date = info.v6.version.date
} else {
version = 'unknown'
date = 'unknown'