summaryrefslogtreecommitdiff
path: root/plugins/Realtime/realtimeupdate.js
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-11-28 14:29:25 +0000
committerSarven Capadisli <csarven@status.net>2009-11-28 14:29:25 +0000
commit36e38b4b6037ee36c0c1aaef445c1914a865be94 (patch)
treef4a0d606e03b721b3ecf8296a8d1d85c3f844126 /plugins/Realtime/realtimeupdate.js
parentd5a92767916d5fcb3cc750e9ec55edc5c028e838 (diff)
Only bind submit to the notice created by Realtime
Diffstat (limited to 'plugins/Realtime/realtimeupdate.js')
-rw-r--r--plugins/Realtime/realtimeupdate.js4
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();
},