From 0d6a1b6c926f2401b9b43020cc501de16277264c Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Sun, 29 Nov 2009 19:18:17 +0000 Subject: [PATCH] Last check to see if the notice item contains an attachment --- js/util.js | 4 ++++ 1 file changed, 4 insertions(+) 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 = { -- 2.39.5