From 36e38b4b6037ee36c0c1aaef445c1914a865be94 Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Sat, 28 Nov 2009 14:29:25 +0000 Subject: [PATCH] Only bind submit to the notice created by Realtime --- plugins/Realtime/realtimeupdate.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/Realtime/realtimeupdate.js b/plugins/Realtime/realtimeupdate.js index 4ed95ff268..3043f43a38 100644 --- a/plugins/Realtime/realtimeupdate.js +++ b/plugins/Realtime/realtimeupdate.js @@ -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(); }, -- 2.39.5