diff options
author | 2012-07-31 01:24:49 -0400 | |
---|---|---|
committer | 2012-07-31 01:24:49 -0400 | |
commit | 5fed026bcdaa0724acd2640193e341bb8358980b (patch) | |
tree | 97463af6af63042458adbc71f1253fc0fe9bc027 /templates/notifications | |
parent | 58dfa3fa5b1b8be6f344e9ef5bfb3adda11069ab (diff) |
reorg templates
Diffstat (limited to 'templates/notifications')
-rw-r--r-- | templates/notifications/longpolling.julius | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/notifications/longpolling.julius b/templates/notifications/longpolling.julius new file mode 100644 index 000000000..affa50cc8 --- /dev/null +++ b/templates/notifications/longpolling.julius @@ -0,0 +1,12 @@ +function longpoll_#{ident}() { + longpoll(longpoll_#{ident}_url, '#{ident}' + , function() { setTimeout(longpoll_#{ident}, #{delay}); } + , function() { webapp_disconnected(); } + ); +} +$(function() { + $.get("@{geturl}", function(url){ + longpoll_#{ident}_url = url; + setTimeout(longpoll_#{ident}, #{startdelay}); + }); +}); |