Commit 569fc5a6738e89c41405cd5f81a76f3385d67e23
1 parent
76d89ceb
Exists in
master
and in
39 other branches
Updating converse.js
Removing spinner after login attempt
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
src/colab/static/third-party/converse.js/converse.js
@@ -2517,21 +2517,21 @@ | @@ -2517,21 +2517,21 @@ | ||
2517 | console.log(__('Connected')); | 2517 | console.log(__('Connected')); |
2518 | converse.onConnected(connection); | 2518 | converse.onConnected(connection); |
2519 | } else if (status === Strophe.Status.DISCONNECTED) { | 2519 | } else if (status === Strophe.Status.DISCONNECTED) { |
2520 | - if ($button) { $button.show().siblings('img').remove(); } | 2520 | + if ($button) { $button.show().siblings('span').remove(); } |
2521 | converse.giveFeedback(__('Disconnected'), 'error'); | 2521 | converse.giveFeedback(__('Disconnected'), 'error'); |
2522 | this.connect(null, connection.jid, connection.pass); | 2522 | this.connect(null, connection.jid, connection.pass); |
2523 | } else if (status === Strophe.Status.Error) { | 2523 | } else if (status === Strophe.Status.Error) { |
2524 | - if ($button) { $button.show().siblings('img').remove(); } | 2524 | + if ($button) { $button.show().siblings('span').remove(); } |
2525 | converse.giveFeedback(__('Error'), 'error'); | 2525 | converse.giveFeedback(__('Error'), 'error'); |
2526 | } else if (status === Strophe.Status.CONNECTING) { | 2526 | } else if (status === Strophe.Status.CONNECTING) { |
2527 | converse.giveFeedback(__('Connecting')); | 2527 | converse.giveFeedback(__('Connecting')); |
2528 | } else if (status === Strophe.Status.CONNFAIL) { | 2528 | } else if (status === Strophe.Status.CONNFAIL) { |
2529 | - if ($button) { $button.show().siblings('img').remove(); } | 2529 | + if ($button) { $button.show().siblings('span').remove(); } |
2530 | converse.giveFeedback(__('Connection Failed'), 'error'); | 2530 | converse.giveFeedback(__('Connection Failed'), 'error'); |
2531 | } else if (status === Strophe.Status.AUTHENTICATING) { | 2531 | } else if (status === Strophe.Status.AUTHENTICATING) { |
2532 | converse.giveFeedback(__('Authenticating')); | 2532 | converse.giveFeedback(__('Authenticating')); |
2533 | } else if (status === Strophe.Status.AUTHFAIL) { | 2533 | } else if (status === Strophe.Status.AUTHFAIL) { |
2534 | - if ($button) { $button.show().siblings('img').remove(); } | 2534 | + if ($button) { $button.show().siblings('span').remove(); } |
2535 | converse.giveFeedback(__('Authentication Failed'), 'error'); | 2535 | converse.giveFeedback(__('Authentication Failed'), 'error'); |
2536 | } else if (status === Strophe.Status.DISCONNECTING) { | 2536 | } else if (status === Strophe.Status.DISCONNECTING) { |
2537 | converse.giveFeedback(__('Disconnecting'), 'error'); | 2537 | converse.giveFeedback(__('Disconnecting'), 'error'); |