forked from GNUsocial/gnu-social
Only bind submit to the notice created by Realtime
This commit is contained in:
parent
d5a9276791
commit
36e38b4b60
@ -87,11 +87,13 @@ RealtimeUpdate = {
|
||||
}
|
||||
|
||||
var noticeItem = RealtimeUpdate.makeNoticeItem(data);
|
||||
var noticeItemID = $(noticeItem).attr('id');
|
||||
|
||||
$("#notices_primary .notices").prepend(noticeItem);
|
||||
$("#notices_primary .notice:first").css({display:"none"});
|
||||
$("#notices_primary .notice:first").fadeIn(1000);
|
||||
|
||||
SN.U.NoticeReply();
|
||||
SN.U.FormXHR($('#'+noticeItemID+' .form_favor'));
|
||||
SN.U.NoticeFavor();
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user