From 0d6a1b6c926f2401b9b43020cc501de16277264c Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Sun, 29 Nov 2009 19:18:17 +0000 Subject: Last check to see if the notice item contains an attachment --- js/util.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js/util.js') diff --git a/js/util.js b/js/util.js index 0bd671f8d..e064c173b 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 = { -- cgit v1.2.3-54-g00ecf