diff options
author | =Corey Hulen <corey@hulen.com> | 2015-09-03 13:39:22 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-09-03 13:39:22 -0700 |
commit | 05d95d80a896d14474c7f7384d67b9edd524b922 (patch) | |
tree | 2fcc619c38175014813ffc7df34abad82e5d5b77 /web/react/components/file_attachment.jsx | |
parent | 48ca3a4007c8b9c40a3bc3789563ed9992e9b64d (diff) | |
parent | 4f0c06114b61c92d982baac1c54ed80da93a9cc9 (diff) | |
download | chat-05d95d80a896d14474c7f7384d67b9edd524b922.tar.gz chat-05d95d80a896d14474c7f7384d67b9edd524b922.tar.bz2 chat-05d95d80a896d14474c7f7384d67b9edd524b922.zip |
Merge branch 'master' into PLT-12
Diffstat (limited to 'web/react/components/file_attachment.jsx')
-rw-r--r-- | web/react/components/file_attachment.jsx | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/web/react/components/file_attachment.jsx b/web/react/components/file_attachment.jsx index 5d7855037..78693df98 100644 --- a/web/react/components/file_attachment.jsx +++ b/web/react/components/file_attachment.jsx @@ -101,10 +101,13 @@ export default class FileAttachment extends React.Component { var thumbnail; if (type === 'image') { - thumbnail = (<div - ref={filename} - className='post__load' - style={{backgroundImage: 'url(/static/images/load.gif)'}} />); + thumbnail = ( + <div + ref={filename} + className='post__load' + style={{backgroundImage: 'url(/static/images/load.gif)'}} + /> + ); } else { thumbnail = <div className={'file-icon ' + utils.getIconClassName(type)}/>; } @@ -135,20 +138,23 @@ export default class FileAttachment extends React.Component { return ( <div className='post-image__column' - key={filename}> + key={filename} + > <a className='post-image__thumbnail' href='#' onClick={this.props.handleImageClick} data-img-id={this.props.index} data-toggle='modal' - data-target={'#' + this.props.modalId} > + data-target={'#' + this.props.modalId} + > {thumbnail} </a> <div className='post-image__details'> <div data-toggle='tooltip' title={filenameString} - className='post-image__name' > + className='post-image__name' + > {trimmedFilename} </div> <div> |