summaryrefslogtreecommitdiffstats
path: root/web
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
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')
-rw-r--r--web/react/components/file_attachment.jsx2
-rw-r--r--web/react/components/view_image_popover_bar.jsx1
2 files changed, 3 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'
diff --git a/web/react/components/view_image_popover_bar.jsx b/web/react/components/view_image_popover_bar.jsx
index 819df76d8..18be5a3c5 100644
--- a/web/react/components/view_image_popover_bar.jsx
+++ b/web/react/components/view_image_popover_bar.jsx
@@ -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'