]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fixed in reply to JS link for Conversation page. Handles nested
authorSarven Capadisli <csarven@controlyourself.ca>
Fri, 22 May 2009 16:19:14 +0000 (16:19 +0000)
committerSarven Capadisli <csarven@controlyourself.ca>
Fri, 22 May 2009 16:19:14 +0000 (16:19 +0000)
notices better.

js/util.js

index 31d9eb4f54706a09a384ca2cf0604ae7904373ef..2dfaafd76883d5f9aa17414d5be338fff12b3eec 100644 (file)
@@ -235,10 +235,10 @@ function NoticeHover() {
 function NoticeReply() {
     if ($('#notice_data-text').length > 0) {
         $('#content .notice').each(function() {
-            var notice = $(this);
-            $('.notice_reply', $(this)).click(function() {
-                var nickname = ($('.author .nickname', notice).length > 0) ? $('.author .nickname', notice) : $('.author .nickname');
-                NoticeReplySet(nickname.text(), $('.notice_id', notice).text());
+            var notice = $(this)[0];
+            $($('.notice_reply', notice)[0]).click(function() {
+                var nickname = ($('.author .nickname', notice).length > 0) ? $($('.author .nickname', notice)[0]) : $('.author .nickname');
+                NoticeReplySet(nickname.text(), $($('.notice_id', notice)[0]).text());
                 return false;
             });
         });