summaryrefslogtreecommitdiffstats
path: root/web/react/components/file_attachment.jsx
diff options
context:
space:
mode:
authorAsaad Mahmood <Unknowngi@live.com>2015-08-14 19:38:01 +0500
committerAsaad Mahmood <Unknowngi@live.com>2015-08-14 19:38:01 +0500
commit9a4a1c5f96c95cb79cfd4ba6f88e47404e8d9b5d (patch)
tree3414d6e34be25a7af67fb4e2712d8d938e1887b7 /web/react/components/file_attachment.jsx
parent67dc6e60f3e49ce1780b4bfccd57e62ccdc3902f (diff)
downloadchat-9a4a1c5f96c95cb79cfd4ba6f88e47404e8d9b5d.tar.gz
chat-9a4a1c5f96c95cb79cfd4ba6f88e47404e8d9b5d.tar.bz2
chat-9a4a1c5f96c95cb79cfd4ba6f88e47404e8d9b5d.zip
Initialising trimmedFilename variable
Diffstat (limited to 'web/react/components/file_attachment.jsx')
-rw-r--r--web/react/components/file_attachment.jsx1
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)) + "...";
}