]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Slightly more specific selector. Looks only in the notices in the
authorSarven Capadisli <csarven@controlyourself.ca>
Thu, 25 Jun 2009 03:46:52 +0000 (03:46 +0000)
committerSarven Capadisli <csarven@controlyourself.ca>
Thu, 25 Jun 2009 03:46:52 +0000 (03:46 +0000)
content area

js/util.js

index 65a77960a06d570a84f2d556a9f63828ab07ea40..221c851206dadd229bf4af29e9917e326ada0136 100644 (file)
@@ -280,13 +280,13 @@ function NoticeAttachments() {
         timeout : 0
     };
 
-    $('a.attachment').click(function() {
+    $('#content .notice a.attachment').click(function() {
         $().jOverlay({url: $('address .url')[0].href+'/attachment/' + ($(this).attr('id').substring('attachment'.length + 1)) + '/ajax'});
         return false;
     });
     
     var t;
-    $("body:not(#shownotice) a.thumbnail").hover(
+    $("body:not(#shownotice) #content .notice a.thumbnail").hover(
         function() {
             var anchor = $(this);
             $("a.thumbnail").children('img').hide();