Timeout a little incase the notice item from XHR response is
not appended to the page.
This commit is contained in:
parent
d9e7118a33
commit
a57783de02
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user