]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Moved the attachment representation outside of the anchor so that
authorSarven Capadisli <csarven@controlyourself.ca>
Thu, 25 Jun 2009 00:25:22 +0000 (00:25 +0000)
committerSarven Capadisli <csarven@controlyourself.ca>
Thu, 25 Jun 2009 00:25:22 +0000 (00:25 +0000)
onclick, it doesn't follow through on the href (e.g., it would play
the video in the overlay instead)

lib/attachmentlist.php

index a2446a886a73715193f9ea68f36fcc149733b312..60f9a27c0a3cab585cc4d0dcbbb3068ee05ddfa4 100644 (file)
@@ -249,8 +249,8 @@ class Attachment extends AttachmentListItem
         $this->out->elementStart('div', 'entry-title');
         $this->out->elementStart('a', $this->linkAttr());
         $this->out->element('span', null, $this->linkTitle());
-        $this->showRepresentation();
         $this->out->elementEnd('a');
+        $this->showRepresentation();
         $this->out->elementEnd('div');
 
         if (!empty($this->oembed->author_name) || !empty($this->oembed->provider)) {