diff options
author | pmelange <isprotejesvalkata@gmail.com> | 2018-11-05 17:20:16 +0100 |
---|---|---|
committer | pmelange <isprotejesvalkata@gmail.com> | 2018-11-07 18:41:58 +0100 |
commit | 6ef3a00f6bb8e7084aec6ff47375a77d77eee2d2 (patch) | |
tree | bb454a2170e824a204f9f5c27e9f91b041dca627 /applications/luci-app-olsr/luasrc/view/status-olsr/overview.htm | |
parent | 4fc3ab47378df1ffdf766df2c514122a0217a2de (diff) |
luci-app-olsr: convert olsr.lua and overview.htm to new json plugin
Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
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.htm | 12 |
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' |