summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-adblock/luasrc/view/adblock
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2018-12-22 18:37:45 +0100
committerDirk Brenken <dev@brenken.org>2018-12-22 18:37:45 +0100
commit0299b132928afcc32a58f772e7f510086b3efca0 (patch)
tree27395ad966ad23d425232503ca6ed352abce9462 /applications/luci-app-adblock/luasrc/view/adblock
parent5aa2d3a77f2c77af8fbabf0a18c33e1c4b0cd1d9 (diff)
luci-app-adblock: minor fixes
* use new XHR default on report page * fix wrong string.find syntax Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-adblock/luasrc/view/adblock')
-rw-r--r--applications/luci-app-adblock/luasrc/view/adblock/report.htm4
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-app-adblock/luasrc/view/adblock/report.htm b/applications/luci-app-adblock/luasrc/view/adblock/report.htm
index a28ca171b6..4e3d65ba75 100644
--- a/applications/luci-app-adblock/luasrc/view/adblock/report.htm
+++ b/applications/luci-app-adblock/luasrc/view/adblock/report.htm
@@ -166,7 +166,7 @@ This is free software, licensed under the Apache License, Version 2.0
report_json(json_info);
});
- XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "services", "adblock", "report_json")%>', null,
+ XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "services", "adblock", "report_json")%>', null,
function(x, json_info)
{
if (!x || !json_info || !json_info.data)
@@ -188,7 +188,7 @@ This is free software, licensed under the Apache License, Version 2.0
report_text(x.responseText);
});
- XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "services", "adblock", "report_text")%>', null,
+ XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "services", "adblock", "report_text")%>', null,
function(x)
{
if (!x || !x.responseText)