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

View File

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