got this JS working
This commit is contained in:
parent
9b1ed7a720
commit
9648acc7a4
2 changed files with 26 additions and 31 deletions
|
@ -1,11 +1,9 @@
|
|||
// longpolling for #{ident}
|
||||
function poller#{ident}() {
|
||||
if (longpoll('@{gethtml}', '#{ident}')) {
|
||||
longpoll('@{gethtml}', '#{ident}', function() {
|
||||
setTimeout(poller#{ident}, #{delay});
|
||||
}
|
||||
}
|
||||
(function( $ ) {
|
||||
$(document).bind('ready.app', function() {
|
||||
setTimeout(poller#{ident}, #{startdelay});
|
||||
});
|
||||
})( jQuery );
|
||||
}
|
||||
$(function() {
|
||||
setTimeout(poller#{ident}, #{startdelay});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue