From: Sarven Capadisli Date: Thu, 18 Jun 2009 01:04:12 +0000 (+0000) Subject: Placed a check to make sure there is a reply button in a notice before X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5854fe194a35e1bbf2feb6db415f54f33def2dd9;p=quix0rs-gnu-social.git Placed a check to make sure there is a reply button in a notice before applying the dynamic action --- diff --git a/js/util.js b/js/util.js index ce0c20d31b..854d250609 100644 --- a/js/util.js +++ b/js/util.js @@ -235,7 +235,7 @@ $(document).ready(function(){ }); function NoticeReply() { - if ($('#notice_data-text').length > 0) { + if ($('#notice_data-text').length > 0 && $('.notice_reply').length > 0) { $('#content .notice').each(function() { var notice = $(this)[0]; $($('.notice_reply', notice)[0]).click(function() { @@ -308,4 +308,4 @@ function NoticeAttachments() { $(this).closest(".entry-title").removeClass('ov'); } ); -} \ No newline at end of file +}