git-annex/templates/longpolling.julius
Joey Hess 502bc5d5f8 rewrote longpolling, trying to avoid duplication
does not work though. stupid JS
2012-07-30 18:01:41 -04:00

11 lines
269 B
Text

// longpolling for #{ident}
function poller#{ident}() {
if (longpoll('@{gethtml}', '#{ident}')) {
setTimeout(poller#{ident}, #{delay});
}
}
(function( $ ) {
$(document).bind('ready.app', function() {
setTimeout(poller#{ident}, #{startdelay});
});
})( jQuery );