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/edit_post_modal.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/edit_post_modal.jsx')
-rw-r--r-- | web/react/components/edit_post_modal.jsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/web/react/components/edit_post_modal.jsx b/web/react/components/edit_post_modal.jsx index df692e1bb..1c5a1ed5e 100644 --- a/web/react/components/edit_post_modal.jsx +++ b/web/react/components/edit_post_modal.jsx @@ -38,10 +38,8 @@ module.exports = React.createClass({ $("#edit_post").modal('hide'); $(this.state.refocusId).focus(); }, - handleEditInput: function(editText) { - var editMessage = utils.truncateText(editText); - var newError = utils.checkMessageLengthError(editMessage, this.state.error, 'New message length cannot exceed ' + Constants.MAX_POST_LEN + ' characters'); - this.setState({editText: editMessage, error: newError}); + handleEditInput: function(editMessage) { + this.setState({editText: editMessage}); }, handleEditKeyPress: function(e) { if (e.which == 13 && !e.shiftKey && !e.altKey) { |