summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-adblock/luasrc/view
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2019-08-26 11:46:33 +0200
committerDirk Brenken <dev@brenken.org>2019-08-26 14:09:39 +0200
commitbd405bfed02851780d74f93f8286497e7f2af4d8 (patch)
tree34dc0642b5ab7955fe14bccaeabe573e56eb8a0a /applications/luci-app-adblock/luasrc/view
parent2aab85814d0eead5f82ee1c5661f03667ce50b62 (diff)
luci-app-adblock: sync with adblock 3.8.3
* fix a suspend/resume issue * format overall domains with a thousands separator Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-adblock/luasrc/view')
-rw-r--r--applications/luci-app-adblock/luasrc/view/adblock/runtime.htm8
1 files changed, 7 insertions, 1 deletions
diff --git a/applications/luci-app-adblock/luasrc/view/adblock/runtime.htm b/applications/luci-app-adblock/luasrc/view/adblock/runtime.htm
index b5cf832913..2cec573346 100644
--- a/applications/luci-app-adblock/luasrc/view/adblock/runtime.htm
+++ b/applications/luci-app-adblock/luasrc/view/adblock/runtime.htm
@@ -6,6 +6,12 @@ This is free software, licensed under the Apache License, Version 2.0
<%+adblock/adblock_css%>
<script type="text/javascript">
//<![CDATA[
+ function format(number)
+ {
+ var string = number.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1.');
+ return string;
+ }
+
function status_update(json)
{
var btn1 = document.getElementById("btn1");
@@ -52,7 +58,7 @@ This is free software, licensed under the Apache License, Version 2.0
document.getElementById("value_4").innerHTML = json.data.dns_backend || "-";
document.getElementById("value_5").innerHTML = json.data.dns_variant || "-";
document.getElementById("value_6").innerHTML = json.data.backup_dir || "-";
- document.getElementById("value_7").innerHTML = json.data.overall_domains || "-";
+ document.getElementById("value_7").innerHTML = format(json.data.overall_domains) || "-";
document.getElementById("value_8").innerHTML = json.data.last_rundate || "-";
}