let PDF, Plain Text and HTML Attachments open in a new window

This commit is contained in:
Klaus Leithoff 2009-09-09 14:25:41 +00:00
parent 6b304ea500
commit 993ac50fae

View File

@ -612,7 +612,7 @@
$this->t->set_var('size',egw_vfs::hsize($value['size']));
$this->t->set_var('attachment_number',$key);
switch($value['mimeType'])
switch(strtoupper($value['mimeType']))
{
case 'MESSAGE/RFC822':
$linkData = array
@ -629,7 +629,9 @@
case 'IMAGE/JPEG':
case 'IMAGE/PNG':
case 'IMAGE/GIF':
#case 'application/pdf':
case 'APPLICATION/PDF':
case 'TEXT/PLAIN':
case 'TEXT/HTML':
$linkData = array
(
'menuaction' => 'felamimail.uidisplay.getAttachment',