From: Sarven Capadisli Date: Wed, 28 Jan 2009 15:25:50 +0000 (+0000) Subject: Uses regular HTTP GET to new notice replyto page instead of JS when X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e2d445abbbf50447557ea1a9b1c0ff518a46cd7e;p=quix0rs-gnu-social.git Uses regular HTTP GET to new notice replyto page instead of JS when notice_data-text is available. --- diff --git a/js/util.js b/js/util.js index 391e4653de..3ad0386122 100644 --- a/js/util.js +++ b/js/util.js @@ -202,14 +202,16 @@ function NoticeHover() { } function NoticeReply() { - $('#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()); - return false; + 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()); + return false; + }); }); - }); + } } function NoticeReplySet(nick,id) {