summaryrefslogtreecommitdiff
path: root/templates/notifications/longpolling.julius
blob: affa50cc8144a8da96361bdf4fcbeb535fe71301 (plain)
1
2
3
4
5
6
7
8
9
10
11
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});
	});
});