summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-11-29 19:18:17 +0000
committerSarven Capadisli <csarven@status.net>2009-11-29 19:18:17 +0000
commit0d6a1b6c926f2401b9b43020cc501de16277264c (patch)
tree84da96bb588c5d69764712f9b247f904c98c02c9 /js
parentaa1bb43588d336b6d08c39ef3bd0a590d64dfe69 (diff)
Last check to see if the notice item contains an attachment
Diffstat (limited to 'js')
-rw-r--r--js/util.js4
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 = {