This commit is contained in:
Joey Hess 2012-07-30 20:35:30 -04:00
parent d3413ee5a9
commit 2821f9f976

View file

@ -1,10 +1,9 @@
// longpolling for #{ident}
function poller#{ident}() {
function longpoll_#{ident}() {
longpoll('@{gethtml}', '#{ident}'
, function() { setTimeout(poller#{ident}, #{delay}); }
, function() { setTimeout(longpoll_#{ident}, #{delay}); }
, function() { webapp_disconnected(); }
);
}
$(function() {
setTimeout(poller#{ident}, #{startdelay});
setTimeout(longpoll_#{ident}, #{startdelay});
});