From 121e7fea66b686cab8756ccdc0727b47afb288d2 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Thu, 20 Dec 2018 10:09:58 +0100 Subject: 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-ddns/luasrc/view/ddns/overview_status.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applications/luci-app-ddns/luasrc/view/ddns') diff --git a/applications/luci-app-ddns/luasrc/view/ddns/overview_status.htm b/applications/luci-app-ddns/luasrc/view/ddns/overview_status.htm index f3f45e0d04..b6e89775c3 100644 --- a/applications/luci-app-ddns/luasrc/view/ddns/overview_status.htm +++ b/applications/luci-app-ddns/luasrc/view/ddns/overview_status.htm @@ -164,7 +164,7 @@ // define only ONE XHR.poll in a page because if one is running it blocks the other one // optimum is to define on Map or Section Level from here you can reach all elements // we need update every 15 seconds only - XHR.poll(5, '<%=url([[admin]], [[services]], [[ddns]], [[status]])%>', null, + XHR.poll(-1, '<%=url([[admin]], [[services]], [[ddns]], [[status]])%>', null, function(x, data) { if (data) { _data2elements(data); } } -- cgit v1.2.3