git-annex/templates/notifications/longpolling.julius

13 lines
321 B
Text
Raw Normal View History

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