projects
/
project
/
luci2
/
ui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f89e46
)
luci2: don't re-set timeout if view is finished already, re-set timeout even if the...
author
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 22 Oct 2013 19:06:22 +0000
(19:06 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 22 Oct 2013 19:06:22 +0000
(19:06 +0000)
luci2/htdocs/luci2/luci2.js
patch
|
blob
|
history
diff --git
a/luci2/htdocs/luci2/luci2.js
b/luci2/htdocs/luci2/luci2.js
index 291af572d31119ec0e318aa03a68220b420ff3bd..55de4c97e2abc181ee37b05bdb26b8f972d40b3c 100644
(file)
--- a/
luci2/htdocs/luci2/luci2.js
+++ b/
luci2/htdocs/luci2/luci2.js
@@
-2420,11
+2420,12
@@
function LuCI2()
var setTimer, runTimer;
setTimer = function() {
- self._timeouts[index] = window.setTimeout(runTimer, interval);
+ if (self._timeouts)
+ self._timeouts[index] = window.setTimeout(runTimer, interval);
};
runTimer = function() {
- _luci2.deferrable(func.call(self)).then(setTimer);
+ _luci2.deferrable(func.call(self)).then(setTimer
, setTimer
);
};
runTimer();