From 121e7fea66b686cab8756ccdc0727b47afb288d2 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Thu, 20 Dec 2018 10:09:58 +0100 Subject: [PATCH] luci-app-*: use default poll interval Replace all XHR poll time number with -1 so they will use the default poll interval time value from "/etc/config/luci". If this is not set then 5 seconds as default is used. Signed-off-by: Florian Eckert --- applications/luci-app-adblock/luasrc/view/adblock/logread.htm | 2 +- applications/luci-app-adblock/luasrc/view/adblock/runtime.htm | 2 +- applications/luci-app-ahcp/luasrc/view/ahcp_status.htm | 2 +- .../luci-app-aria2/luasrc/view/aria2/overview_status.htm | 2 +- applications/luci-app-banip/luasrc/view/banip/logview.htm | 2 +- applications/luci-app-banip/luasrc/view/banip/runtime.htm | 2 +- applications/luci-app-ddns/luasrc/view/ddns/overview_status.htm | 2 +- applications/luci-app-ltqtapi/luasrc/view/telephony_status.htm | 2 +- applications/luci-app-minidlna/luasrc/view/minidlna_status.htm | 2 +- .../luasrc/view/mwan/overview_status_interface.htm | 2 +- applications/luci-app-mwan3/luasrc/view/mwan/status_detail.htm | 2 +- applications/luci-app-ocserv/luasrc/view/ocserv_status.htm | 2 +- .../luci-app-privoxy/luasrc/view/privoxy/detail_startstop.htm | 2 +- .../luci-app-radicale/luasrc/view/radicale/btn_startstop.htm | 2 +- .../luasrc/view/shadowsocks-libev/add_instance.htm | 2 +- .../luci-app-travelmate/luasrc/view/travelmate/logread.htm | 2 +- .../luci-app-travelmate/luasrc/view/travelmate/runtime.htm | 2 +- .../luci-app-travelmate/luasrc/view/travelmate/stations.htm | 2 +- applications/luci-app-upnp/luasrc/view/upnp_status.htm | 2 +- applications/luci-app-wireguard/luasrc/view/wireguard.htm | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) diff --git a/applications/luci-app-adblock/luasrc/view/adblock/logread.htm b/applications/luci-app-adblock/luasrc/view/adblock/logread.htm index 7fe254ae8..48e367ec2 100644 --- a/applications/luci-app-adblock/luasrc/view/adblock/logread.htm +++ b/applications/luci-app-adblock/luasrc/view/adblock/logread.htm @@ -10,7 +10,7 @@ This is free software, licensed under the Apache License, Version 2.0 //', null, + XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "services", "adblock", "logread")%>', null, function(x) { if (!x) diff --git a/applications/luci-app-adblock/luasrc/view/adblock/runtime.htm b/applications/luci-app-adblock/luasrc/view/adblock/runtime.htm index 0b5c74857..72e2b0d36 100644 --- a/applications/luci-app-adblock/luasrc/view/adblock/runtime.htm +++ b/applications/luci-app-adblock/luasrc/view/adblock/runtime.htm @@ -123,7 +123,7 @@ This is free software, licensed under the Apache License, Version 2.0 status_update(json_info); }); - XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "services", "adblock", "status_update")%>', null, + XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "services", "adblock", "status_update")%>', null, function(x, json_info) { if (!x || !json_info || !json_info.data) diff --git a/applications/luci-app-ahcp/luasrc/view/ahcp_status.htm b/applications/luci-app-ahcp/luasrc/view/ahcp_status.htm index ab25f862b..4e043aaf3 100644 --- a/applications/luci-app-ahcp/luasrc/view/ahcp_status.htm +++ b/applications/luci-app-ahcp/luasrc/view/ahcp_status.htm @@ -1,5 +1,5 @@