]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Last check to see if the notice item contains an attachment
authorSarven Capadisli <csarven@status.net>
Sun, 29 Nov 2009 19:18:17 +0000 (19:18 +0000)
committerSarven Capadisli <csarven@status.net>
Sun, 29 Nov 2009 19:18:17 +0000 (19:18 +0000)
js/util.js

index 0bd671f8dffd0d268bd6bc91dfa595522ced7994..e064c173b9b1abe35d02c01c617c4ab6ee0e128e 100644 (file)
@@ -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 = {