diff options
author | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-08-28 14:43:48 -0700 |
---|---|---|
committer | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-08-28 14:43:48 -0700 |
commit | 023b286930d16fe94c0c77295c09f51910a74fcc (patch) | |
tree | 0443ff246f9422d17c041222d3d8cd00d7c0c0f4 /web/react/components/create_comment.jsx | |
parent | bdf53884f567a46216fc1b8f3462fd15ab53ae92 (diff) | |
download | chat-023b286930d16fe94c0c77295c09f51910a74fcc.tar.gz chat-023b286930d16fe94c0c77295c09f51910a74fcc.tar.bz2 chat-023b286930d16fe94c0c77295c09f51910a74fcc.zip |
Removed warning message when at the max character limit
Diffstat (limited to 'web/react/components/create_comment.jsx')
-rw-r--r-- | web/react/components/create_comment.jsx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/web/react/components/create_comment.jsx b/web/react/components/create_comment.jsx index f6e34fda9..c2b7e222f 100644 --- a/web/react/components/create_comment.jsx +++ b/web/react/components/create_comment.jsx @@ -104,17 +104,14 @@ module.exports = React.createClass({ this.lastTime = t; } }, - handleUserInput: function(message) { - var messageText = utils.truncateText(message); - var newPostError = utils.checkMessageLengthError(messageText, this.state.postError, 'Comment length cannot exceed ' + Constants.MAX_POST_LEN + ' characters'); - + handleUserInput: function(messageText) { var draft = PostStore.getCommentDraft(this.props.rootId); draft.message = messageText; PostStore.storeCommentDraft(this.props.rootId, draft); $('.post-right__scroll').scrollTop($('.post-right__scroll')[0].scrollHeight); $('.post-right__scroll').perfectScrollbar('update'); - this.setState({messageText: messageText, postError: newPostError}); + this.setState({messageText: messageText}); }, handleUploadStart: function(clientIds, channelId) { var draft = PostStore.getCommentDraft(this.props.rootId); |