2012-07-30 18:01:41 -04:00
|
|
|
// longpolling for #{ident}
|
|
|
|
function poller#{ident}() {
|
|
|
|
if (longpoll('@{gethtml}', '#{ident}')) {
|
|
|
|
setTimeout(poller#{ident}, #{delay});
|
2012-07-26 17:56:24 -04:00
|
|
|
}
|
2012-07-30 18:01:41 -04:00
|
|
|
}
|
|
|
|
(function( $ ) {
|
|
|
|
$(document).bind('ready.app', function() {
|
|
|
|
setTimeout(poller#{ident}, #{startdelay});
|
|
|
|
});
|
2012-07-26 17:56:24 -04:00
|
|
|
})( jQuery );
|