summaryrefslogtreecommitdiffstats
path: root/web/react/components/edit_post_modal.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-08-30 20:58:00 -0700
committerCorey Hulen <corey@hulen.com>2015-08-30 20:58:00 -0700
commit07bdbf21f5dd14ecab85f1cfdced701a5e981d2f (patch)
treeb169f94ae813d5ac111bacf290a36da5e76b09ec /web/react/components/edit_post_modal.jsx
parent9ed32b2128c26db1417b6e2b6d03337f8fb373a4 (diff)
parent023b286930d16fe94c0c77295c09f51910a74fcc (diff)
downloadchat-07bdbf21f5dd14ecab85f1cfdced701a5e981d2f.tar.gz
chat-07bdbf21f5dd14ecab85f1cfdced701a5e981d2f.tar.bz2
chat-07bdbf21f5dd14ecab85f1cfdced701a5e981d2f.zip
Merge pull request #519 from rgarmsen2295/fix-slow-type
[Performance Fix] Removes 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.jsx6
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) {