diff options
author | nickago <ngonella@calpoly.edu> | 2015-07-17 12:09:12 -0700 |
---|---|---|
committer | nickago <ngonella@calpoly.edu> | 2015-07-17 12:09:12 -0700 |
commit | af56bed1a33cc4b5af696b04e156f23dbd25a369 (patch) | |
tree | b9cbea327474256e98698c64d18898fa062fb559 /web | |
parent | 05d6a3a8128ea9b901a3f6eba0bd048b0464a390 (diff) | |
download | chat-af56bed1a33cc4b5af696b04e156f23dbd25a369.tar.gz chat-af56bed1a33cc4b5af696b04e156f23dbd25a369.tar.bz2 chat-af56bed1a33cc4b5af696b04e156f23dbd25a369.zip |
Even on error, submission stop, updated to relect that
Diffstat (limited to 'web')
-rw-r--r-- | web/react/components/create_comment.jsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/react/components/create_comment.jsx b/web/react/components/create_comment.jsx index 9e3feb25c..6ed0f0b34 100644 --- a/web/react/components/create_comment.jsx +++ b/web/react/components/create_comment.jsx @@ -43,7 +43,7 @@ module.exports = React.createClass({ client.createPost(post, ChannelStore.getCurrent(), function(data) { - this.setState({ messageText: '', submitting: false, post_error: null }); + this.setState({ messageText: '', submitting: false, post_error: null, server_error: null }); this.clearPreviews(); AsyncClient.getPosts(true, this.props.channelId); @@ -57,6 +57,7 @@ module.exports = React.createClass({ function(err) { var state = {}; state.server_error = err.message; + state.submitting = false; if (err.message === "Invalid RootId parameter") { if ($('#post_deleted').length > 0) $('#post_deleted').modal('show'); |