summaryrefslogtreecommitdiffstats
path: root/web/react/components/file_attachment.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-03-08 14:40:47 -0500
committerHarrison Healey <harrisonmhealey@gmail.com>2016-03-08 14:40:47 -0500
commit507eda092ebb96550dc8e46cfcf570da37ce1d56 (patch)
treebcc233d36648499fbe54b7df72ea7c1092f8cdd3 /web/react/components/file_attachment.jsx
parent22470c2069eb21539540d19e80fd85394782c9a7 (diff)
downloadchat-507eda092ebb96550dc8e46cfcf570da37ce1d56.tar.gz
chat-507eda092ebb96550dc8e46cfcf570da37ce1d56.tar.bz2
chat-507eda092ebb96550dc8e46cfcf570da37ce1d56.zip
Added target='_blank' to all attachment download links
Diffstat (limited to 'web/react/components/file_attachment.jsx')
-rw-r--r--web/react/components/file_attachment.jsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/react/components/file_attachment.jsx b/web/react/components/file_attachment.jsx
index c719c6c7d..2f6067b86 100644
--- a/web/react/components/file_attachment.jsx
+++ b/web/react/components/file_attachment.jsx
@@ -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'