diff options
author | Asaad Mahmood <Unknowngi@live.com> | 2015-08-14 19:38:01 +0500 |
---|---|---|
committer | Asaad Mahmood <Unknowngi@live.com> | 2015-08-14 19:38:01 +0500 |
commit | 9a4a1c5f96c95cb79cfd4ba6f88e47404e8d9b5d (patch) | |
tree | 3414d6e34be25a7af67fb4e2712d8d938e1887b7 /web | |
parent | 67dc6e60f3e49ce1780b4bfccd57e62ccdc3902f (diff) | |
download | chat-9a4a1c5f96c95cb79cfd4ba6f88e47404e8d9b5d.tar.gz chat-9a4a1c5f96c95cb79cfd4ba6f88e47404e8d9b5d.tar.bz2 chat-9a4a1c5f96c95cb79cfd4ba6f88e47404e8d9b5d.zip |
Initialising trimmedFilename variable
Diffstat (limited to 'web')
-rw-r--r-- | web/react/components/file_attachment.jsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web/react/components/file_attachment.jsx b/web/react/components/file_attachment.jsx index de9e2a04b..5eba3a14e 100644 --- a/web/react/components/file_attachment.jsx +++ b/web/react/components/file_attachment.jsx @@ -114,6 +114,7 @@ module.exports = React.createClass({ } var filenameString = decodeURIComponent(utils.getFileName(filename)); + var trimmedFilename; if(filenameString.length > 35){ trimmedFilename = filenameString.substring(0, Math.min(35,filenameString.length)) + "..."; } |