diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-03-08 14:40:47 -0500 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-03-08 14:40:47 -0500 |
commit | 507eda092ebb96550dc8e46cfcf570da37ce1d56 (patch) | |
tree | bcc233d36648499fbe54b7df72ea7c1092f8cdd3 | |
parent | 22470c2069eb21539540d19e80fd85394782c9a7 (diff) | |
download | chat-507eda092ebb96550dc8e46cfcf570da37ce1d56.tar.gz chat-507eda092ebb96550dc8e46cfcf570da37ce1d56.tar.bz2 chat-507eda092ebb96550dc8e46cfcf570da37ce1d56.zip |
Added target='_blank' to all attachment download links
-rw-r--r-- | web/react/components/file_attachment.jsx | 2 | ||||
-rw-r--r-- | web/react/components/view_image_popover_bar.jsx | 1 |
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' |