Merge pull request #2390 from hmhealey/plt2259

PLT-2259 Added target='_blank' to all attachment download links
Этот коммит содержится в:
Christopher Speller
2016-03-08 23:05:37 -05:00
родитель 734a5dccf0 507eda092e
Коммит ffbc8b1322
2 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@@ -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'

Просмотреть файл

@@ -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'