]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Only bind submit to the notice created by Realtime
authorSarven Capadisli <csarven@status.net>
Sat, 28 Nov 2009 14:29:25 +0000 (14:29 +0000)
committerSarven Capadisli <csarven@status.net>
Sat, 28 Nov 2009 14:29:25 +0000 (14:29 +0000)
plugins/Realtime/realtimeupdate.js

index 4ed95ff268eb1adc947abc8d750f62cc390c7bae..3043f43a380d9d03e65d4c06d7eb69eeda7eaaad 100644 (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();
      },