diff options
author | Brenda Wallace <shiny@cpan.org> | 2009-12-03 00:10:49 +0000 |
---|---|---|
committer | Brenda Wallace <shiny@cpan.org> | 2009-12-03 00:10:49 +0000 |
commit | ce46cce73ef8e1c60888755586919afdf9afee14 (patch) | |
tree | 0f770974536bc4d9b67d42ef8016419a5627f1a3 /plugins/Realtime/realtimeupdate.js | |
parent | e42c18ededbc4b8c8e4ef89a7e7a324e6c7c8a8a (diff) | |
parent | 3e38d376a9ed53d6a6268106a7a85c1e9f131034 (diff) |
Merge commit 'origin/0.9.x' into 0.9.x
Diffstat (limited to 'plugins/Realtime/realtimeupdate.js')
-rw-r--r-- | plugins/Realtime/realtimeupdate.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/plugins/Realtime/realtimeupdate.js b/plugins/Realtime/realtimeupdate.js index 4ed95ff26..ce0297339 100644 --- a/plugins/Realtime/realtimeupdate.js +++ b/plugins/Realtime/realtimeupdate.js @@ -87,19 +87,19 @@ 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.NoticeFavor(); + SN.U.FormXHR($('#'+noticeItemID+' .form_favor')); + SN.U.NoticeReplyTo($('#'+noticeItemID)); + SN.U.NoticeWithAttachment($('#'+noticeItemID)); }, purgeLastNoticeItem: function() { if ($('#notices_primary .notice').length > RealtimeUpdate._maxnotices) { - $("#notices_primary .notice:last .form_disfavor").unbind('submit'); - $("#notices_primary .notice:last .form_favor").unbind('submit'); - $("#notices_primary .notice:last .notice_reply").unbind('click'); $("#notices_primary .notice:last").remove(); } }, @@ -281,6 +281,8 @@ RealtimeUpdate = { return false; }); + + $('#showstream .entity_profile').css({'width':'69%'}); } } |