From: Sarven Capadisli Date: Sun, 29 Nov 2009 19:18:17 +0000 (+0000) Subject: Last check to see if the notice item contains an attachment X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0d6a1b6c926f2401b9b43020cc501de16277264c;p=quix0rs-gnu-social.git Last check to see if the notice item contains an attachment --- diff --git a/js/util.js b/js/util.js index 0bd671f8df..e064c173b9 100644 --- a/js/util.js +++ b/js/util.js @@ -302,6 +302,10 @@ var SN = { // StatusNet }, NoticeWithAttachment: function(notice) { + if ($('.attachment', notice).length === 0) { + return; + } + var notice_id = notice.attr('id'); $.fn.jOverlay.options = {