<div>
<div>
- <p><a href="{link controller='Attachment' object=$attachment}{/link}"{if $attachment->isImage} title="{$attachment->filename}" class="jsImageViewer"{/if}>{$attachment->filename}</a></p>
+ <p><a href="{link controller='Attachment' object=$attachment}{/link}" target="_blank"{if $attachment->isImage} title="{$attachment->filename}" class="jsImageViewer"{/if}>{$attachment->filename}</a></p>
<small>{@$attachment->filesize|filesize}</small>
</div>
// update attachment link
var $link = $('<a href=""></a>');
$link.text($filename).attr('href', attachmentData.url);
+ $link[0].target = '_blank';
if (attachmentData.isImage != 0) {
$link.addClass('jsImageViewer').attr('title', $filename);