summaryrefslogtreecommitdiff
path: root/templates/longpolling.julius
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-07-30 20:33:23 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-07-30 20:33:23 -0400
commitd3413ee5a98367bc2f3c56011db8c9393306d80b (patch)
treefb64f9a36846cfc8a5f7d0bd049368ddc4b1258c /templates/longpolling.julius
parent9648acc7a4edd44a080f40d8e918b1388b24171a (diff)
further refactoring my js
Diffstat (limited to 'templates/longpolling.julius')
-rw-r--r--templates/longpolling.julius7
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/longpolling.julius b/templates/longpolling.julius
index d34d5b47d..520699cd7 100644
--- a/templates/longpolling.julius
+++ b/templates/longpolling.julius
@@ -1,8 +1,9 @@
// longpolling for #{ident}
function poller#{ident}() {
- longpoll('@{gethtml}', '#{ident}', function() {
- setTimeout(poller#{ident}, #{delay});
- });
+ longpoll('@{gethtml}', '#{ident}'
+ , function() { setTimeout(poller#{ident}, #{delay}); }
+ , function() { webapp_disconnected(); }
+ );
}
$(function() {
setTimeout(poller#{ident}, #{startdelay});