From: Sarven Capadisli Date: Thu, 25 Jun 2009 03:46:52 +0000 (+0000) Subject: Slightly more specific selector. Looks only in the notices in the X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0c5c8348277e234f5f3d1e0b4956e698a6f95a14;p=quix0rs-gnu-social.git Slightly more specific selector. Looks only in the notices in the content area --- diff --git a/js/util.js b/js/util.js index 65a77960a0..221c851206 100644 --- a/js/util.js +++ b/js/util.js @@ -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();