Make attachment fit better in notice: drop text and link
authoraroquen <antonio.roquentin@sfr.fr>
Thu, 5 Mar 2015 21:19:57 +0000 (22:19 +0100)
committerRoland Haeder <roland@mxchange.org>
Thu, 5 Mar 2015 22:50:40 +0000 (23:50 +0100)
lib/attachmentlist.php
lib/inlineattachmentlist.php

index d6cfda6f95961b4f3bd74be7a1a52d384df947bc..a784066fdadf78b413051a53682e82e1b11062c5 100644 (file)
@@ -100,12 +100,12 @@ class AttachmentList extends Widget
 
     function showListStart()
     {
-        $this->out->elementStart('ol', array('class' => 'attachments'));
+        $this->out->elementStart('div', array('class' => 'attachments'));
     }
 
     function showListEnd()
     {
-        $this->out->elementEnd('ol');
+        $this->out->elementEnd('div');
     }
 
     /**
index 9016daf3f19845ef4289e1b48b36fe628fdc2e83..a8f383c3fe80b2a5e0191d4e57238dc14abfd545 100644 (file)
@@ -35,7 +35,6 @@ class InlineAttachmentList extends AttachmentList
 {
     function showListStart()
     {
-        $this->out->element('h3', null, _('Attachments'));
         parent::showListStart();
     }
 
@@ -55,7 +54,6 @@ class InlineAttachmentList extends AttachmentList
 class InlineAttachmentListItem extends AttachmentListItem
 {
     function showLink() {
-        $this->out->element('a', $this->linkAttr(), $this->title());
         $this->showRepresentation();
     }