]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Placed a check to make sure there is a reply button in a notice before
authorSarven Capadisli <csarven@controlyourself.ca>
Thu, 18 Jun 2009 01:04:12 +0000 (01:04 +0000)
committerSarven Capadisli <csarven@controlyourself.ca>
Thu, 18 Jun 2009 01:04:12 +0000 (01:04 +0000)
applying the dynamic action

js/util.js

index ce0c20d31ba05b5a243dc777ee0a6e834e09f7ce..854d250609c1ef89960ec041a039fc2d128a71f4 100644 (file)
@@ -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
+}