diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-07-28 11:14:16 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-07-28 11:14:16 -0400 |
commit | 2602f3b49edd92cc292a49cca26377f19f1ccf4b (patch) | |
tree | 2785d6eb37fa6eb039611d3ec6c43c998ba8ee8d /web/react/components | |
parent | ec2e61bc55aa12c4157937ed6492e109ad3422ae (diff) | |
parent | 892fe2b7b6b801e31dd23d74be14d68c989a4d12 (diff) | |
download | chat-2602f3b49edd92cc292a49cca26377f19f1ccf4b.tar.gz chat-2602f3b49edd92cc292a49cca26377f19f1ccf4b.tar.bz2 chat-2602f3b49edd92cc292a49cca26377f19f1ccf4b.zip |
Merge pull request #255 from hmhealey/mm1682
MM-1682 Allow files without file extensions to be attached to messages
Diffstat (limited to 'web/react/components')
-rw-r--r-- | web/react/components/post_body.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/post_body.jsx b/web/react/components/post_body.jsx index 7871f52b7..9f598ecb3 100644 --- a/web/react/components/post_body.jsx +++ b/web/react/components/post_body.jsx @@ -126,7 +126,7 @@ module.exports = React.createClass({ } else if (i < Constants.MAX_DISPLAY_FILES) { postFiles.push( <div className="post-image__column custom-file" key={fileInfo.name+i}> - <a href={fileInfo.path+"."+fileInfo.ext} download={fileInfo.name+"."+fileInfo.ext}> + <a href={fileInfo.path + (fileInfo.ext ? "." + fileInfo.ext : "")} download={fileInfo.name + (fileInfo.ext ? "." + fileInfo.ext : "")}> <div className={"file-icon "+utils.getIconClassName(type)}/> </a> </div> |