From af56bed1a33cc4b5af696b04e156f23dbd25a369 Mon Sep 17 00:00:00 2001
From: nickago <ngonella@calpoly.edu>
Date: Fri, 17 Jul 2015 12:09:12 -0700
Subject: Even on error, submission stop, updated to relect that

---
 web/react/components/create_comment.jsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'web/react/components/create_comment.jsx')

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');
-- 
cgit v1.2.3-1-g7c22

