git-annex/templates/notifications/longpolling.julius

13 lines
321 B
Text
Raw Normal View History

2012-07-31 00:35:30 +00:00
function longpoll_#{ident}() {
longpoll(longpoll_#{ident}_url, '#{ident}'
2012-07-31 00:35:30 +00:00
, function() { setTimeout(longpoll_#{ident}, #{delay}); }
2012-07-31 00:33:23 +00:00
, function() { webapp_disconnected(); }
);
2012-07-31 00:22:10 +00:00
}
$(function() {
$.get("@{geturl}", function(url){
longpoll_#{ident}_url = url;
setTimeout(longpoll_#{ident}, #{startdelay});
});
2012-07-31 00:22:10 +00:00
});