summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@controlyourself.ca>2009-05-22 16:19:14 +0000
committerSarven Capadisli <csarven@controlyourself.ca>2009-05-22 16:19:14 +0000
commitef2a5c794e7fc82d7f19675a6a11af64135ef4ee (patch)
treece12edafeff4693e1a417700f74dbb267bf1b915 /js
parentf1a61cf6290e317bf7d6b65eba78bb8fea261fe6 (diff)
Fixed in reply to JS link for Conversation page. Handles nested
notices better.
Diffstat (limited to 'js')
-rw-r--r--js/util.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/util.js b/js/util.js
index 31d9eb4f5..2dfaafd76 100644
--- a/js/util.js
+++ b/js/util.js
@@ -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;
});
});