Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
invite: Fix bug when button is not enabled after error in sending invite.
sahil83904a856fa5b53
diff --git a/static/js/invite.js b/static/js/invite.jsindex 53a91b96f95..11c2bda2675 100644--- a/static/js/invite.js+++ b/static/js/invite.js@@ -50,7 +50,9 @@ function beforeSend() {// aren't in the right domain, etc.)//// OR, you could just let the server do it. Probably my temptation.- $("#submit-invitation").button("loading");+ const loading_text = $("#submit-invitation").data("loading-text");+ $("#submit-invitation").text(loading_text);+ $("#submit-invitation").prop("disabled", true);return true;}