Commit 569fc5a6738e89c41405cd5f81a76f3385d67e23

Authored by Sergio Oliveira
1 parent 76d89ceb

Updating converse.js

Removing spinner after login attempt
src/colab/static/third-party/converse.js/converse.js
... ... @@ -2517,21 +2517,21 @@
2517 2517 console.log(__('Connected'));
2518 2518 converse.onConnected(connection);
2519 2519 } else if (status === Strophe.Status.DISCONNECTED) {
2520   - if ($button) { $button.show().siblings('img').remove(); }
  2520 + if ($button) { $button.show().siblings('span').remove(); }
2521 2521 converse.giveFeedback(__('Disconnected'), 'error');
2522 2522 this.connect(null, connection.jid, connection.pass);
2523 2523 } else if (status === Strophe.Status.Error) {
2524   - if ($button) { $button.show().siblings('img').remove(); }
  2524 + if ($button) { $button.show().siblings('span').remove(); }
2525 2525 converse.giveFeedback(__('Error'), 'error');
2526 2526 } else if (status === Strophe.Status.CONNECTING) {
2527 2527 converse.giveFeedback(__('Connecting'));
2528 2528 } else if (status === Strophe.Status.CONNFAIL) {
2529   - if ($button) { $button.show().siblings('img').remove(); }
  2529 + if ($button) { $button.show().siblings('span').remove(); }
2530 2530 converse.giveFeedback(__('Connection Failed'), 'error');
2531 2531 } else if (status === Strophe.Status.AUTHENTICATING) {
2532 2532 converse.giveFeedback(__('Authenticating'));
2533 2533 } else if (status === Strophe.Status.AUTHFAIL) {
2534   - if ($button) { $button.show().siblings('img').remove(); }
  2534 + if ($button) { $button.show().siblings('span').remove(); }
2535 2535 converse.giveFeedback(__('Authentication Failed'), 'error');
2536 2536 } else if (status === Strophe.Status.DISCONNECTING) {
2537 2537 converse.giveFeedback(__('Disconnecting'), 'error');
... ...