summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-11-10 14:31:55 -0800
committerBrion Vibber <brion@pobox.com>2010-11-10 14:31:55 -0800
commit46223da59433e602343169a948bc895977ea253f (patch)
tree9707711b65e5767b5f761ffe2e3118c647b818be
parent592e0bc505c52a38952469bae0a081c224180bd8 (diff)
CSS class tweak for inline attachment thumbnails to avoid things thinking they're content links
-rw-r--r--lib/inlineattachmentlist.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/inlineattachmentlist.php b/lib/inlineattachmentlist.php
index 8b1a1cd9b..de5008e87 100644
--- a/lib/inlineattachmentlist.php
+++ b/lib/inlineattachmentlist.php
@@ -72,6 +72,17 @@ class InlineAttachmentListItem extends AttachmentListItem
}
/**
+ * Build HTML attributes for the link
+ * @return array
+ */
+ function linkAttr()
+ {
+ $attr = parent::linkAttr();
+ $attr['class'] = 'attachment-thumbnail';
+ return $attr;
+ }
+
+ /**
* start a single notice.
*
* @return void