summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-12-20 10:52:06 +0100
committerGitHub <noreply@github.com>2018-12-20 10:52:06 +0100
commit5aa2d3a77f2c77af8fbabf0a18c33e1c4b0cd1d9 (patch)
tree3a65d1102d52881f10b3515e1f1863833bcd9a52 /modules/luci-base/htdocs
parentaee720f11f0c09b3a67a70c6a863bac9c15fe1dc (diff)
parent3b9ba0210e9da62861f260b4ed367e2a05789afe (diff)
Merge pull request #2351 from TDT-AG/pr/20181204-modules
modules: use configurable poll interval
Diffstat (limited to 'modules/luci-base/htdocs')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/xhr.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/xhr.js b/modules/luci-base/htdocs/luci-static/resources/xhr.js
index 8292fcdb6c..3133898b5e 100644
--- a/modules/luci-base/htdocs/luci-static/resources/xhr.js
+++ b/modules/luci-base/htdocs/luci-static/resources/xhr.js
@@ -169,8 +169,8 @@ XHR.post = function(url, data, callback) {
}
XHR.poll = function(interval, url, data, callback, post) {
- if (isNaN(interval) || interval < 1)
- interval = 5;
+ if (isNaN(interval) || interval <= 0)
+ interval = L.env.pollinterval;
if (!XHR._q) {
XHR._t = 0;