Timeout a little incase the notice item from XHR response is

not appended to the page.
This commit is contained in:
Sarven Capadisli 2009-09-30 13:29:37 +00:00
parent d9e7118a33
commit a57783de02

View File

@ -30,10 +30,10 @@ RealtimeUpdate = {
receive: function(data)
{
setTimeout(function() {
id = data.id;
// Don't add it if it already exists
//
if ($("#notice-"+id).length > 0) {
return;
}
@ -43,6 +43,7 @@ RealtimeUpdate = {
$("#notices_primary .notice:first").css({display:"none"});
$("#notices_primary .notice:first").fadeIn(1000);
NoticeReply();
}, 500);
},
makeNoticeItem: function(data)