zulip/static
sahil839 04a856fa5b invite: Fix bug when button is not enabled after error in sending invite.
There is a bug where invite button is not enabled again after sending
invite is failed, but it is enabled on successful completion of invite.

I am not able to figure out why it is behaving differently in success and
error cases, even when the code to enable button is in complete() function
and it is called in both the cases.

But, I can confirm that adding .button('reset') fixes this bug as button
is disabled using the .button('loading') call and this is according to the
bootstrap docs only. But the bootstrap docs mention that the .button(string)
method has been removed in v4.0 as mentioned here
https://getbootstrap.com/docs/3.4/javascript/.

So, as we would want to avoid using depereceated or removed methods, this
commit simply changes the code to disable the button and set the loading
text using simple jquery and this also solves the above mentioned bug.
2021-04-07 09:05:16 -07:00
..
assets eslint: Forbid CommonJS variables in ES6 modules. 2021-03-23 01:42:43 -07:00
audio notificaiton_sounds: Add some atonal sounds created by @stwime. 2021-02-05 12:28:20 -08:00
generated
html logo: Update Zulip logo. 2020-07-16 01:37:08 -07:00
images giphy: Use GIPHY web SDK to allow inserting GIFs in compose box. 2021-04-05 15:04:49 -07:00
js invite: Fix bug when button is not enabled after error in sending invite. 2021-04-07 09:05:16 -07:00
shared emoticon_translation: Update comment for precise object length. 2021-04-01 16:52:32 -07:00
styles tippy: Set default font size to 12px. 2021-04-07 01:16:29 -07:00
templates settings: Hide invite users link in settings overlay based on settings. 2021-04-07 09:05:16 -07:00
third Revert "markdown: Add support to shorten GitHub links." 2021-04-02 15:52:34 -07:00
.gitignore dependencies: Replace moment.js with date-fns. 2021-02-05 11:04:32 -08:00