diff options
author | Sarven Capadisli <csarven@status.net> | 2009-11-29 19:18:17 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@status.net> | 2009-11-29 19:18:17 +0000 |
commit | 0d6a1b6c926f2401b9b43020cc501de16277264c (patch) | |
tree | 84da96bb588c5d69764712f9b247f904c98c02c9 | |
parent | aa1bb43588d336b6d08c39ef3bd0a590d64dfe69 (diff) |
Last check to see if the notice item contains an attachment
-rw-r--r-- | js/util.js | 4 |
1 files changed, 4 insertions, 0 deletions
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 = { |