summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@controlyourself.ca>2009-06-25 03:46:52 +0000
committerSarven Capadisli <csarven@controlyourself.ca>2009-06-25 03:46:52 +0000
commit0c5c8348277e234f5f3d1e0b4956e698a6f95a14 (patch)
tree53d1db18d0cee343bb4024460e3ffd5ad8c2c09f
parent835799ff169387e5b686b2740020dc0e49154bb2 (diff)
Slightly more specific selector. Looks only in the notices in the
content area
-rw-r--r--js/util.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/util.js b/js/util.js
index 65a77960a..221c85120 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();