diff options
author | Sarven Capadisli <csarven@status.net> | 2009-11-28 14:29:25 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@status.net> | 2009-11-28 14:29:25 +0000 |
commit | 36e38b4b6037ee36c0c1aaef445c1914a865be94 (patch) | |
tree | f4a0d606e03b721b3ecf8296a8d1d85c3f844126 /plugins/Realtime/realtimeupdate.js | |
parent | d5a92767916d5fcb3cc750e9ec55edc5c028e838 (diff) |
Only bind submit to the notice created by Realtime
Diffstat (limited to 'plugins/Realtime/realtimeupdate.js')
-rw-r--r-- | plugins/Realtime/realtimeupdate.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Realtime/realtimeupdate.js b/plugins/Realtime/realtimeupdate.js index 4ed95ff26..3043f43a3 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(); }, |