Merge pull request #2390 from hmhealey/plt2259

PLT-2259 Added target='_blank' to all attachment download links
This commit is contained in:
Christopher Speller
2016-03-08 23:05:37 -05:00
2 changed files with 3 additions and 0 deletions

View File

@@ -185,6 +185,7 @@ class FileAttachment extends React.Component {
data-toggle='tooltip'
title={this.props.intl.formatMessage(holders.download) + ' \"' + filenameString + '\"'}
className='post-image__name'
target='_blank'
>
{trimmedFilename}
</a>
@@ -193,6 +194,7 @@ class FileAttachment extends React.Component {
href={fileUrl}
download={filenameString}
className='post-image__download'
target='_blank'
>
<span
className='fa fa-download'

View File

@@ -51,6 +51,7 @@ export default class ViewImagePopoverBar extends React.Component {
href={this.props.fileURL}
download={this.props.filename}
className='text'
target='_blank'
>
<FormattedMessage
id='view_image_popover.download'