Only bind submit to the notice created by Realtime

This commit is contained in:
Sarven Capadisli 2009-11-28 14:29:25 +00:00
parent d5a9276791
commit 36e38b4b60
1 changed files with 3 additions and 1 deletions

View File

@ -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();
},