Commit f96c52a0 authored by JC Brand's avatar JC Brand

Bugfix. Set the connection attr on converse. Updates #41

parent 35d8f1d7
......@@ -2517,13 +2517,11 @@
'<input type="text" id="bosh_service_url">'),
connect: function ($form, jid, password) {
var button = null,
connection = new Strophe.Connection(converse.bosh_service_url);
if ($form) {
$button = $form.find('input[type=submit]');
$button.hide().after('<span class="spinner login-submit"/>');
$form.find('input[type=submit]').hide().after('<span class="spinner login-submit"/>');
}
connection.connect(jid, password, converse.onConnect);
converse.connection = new Strophe.Connection(converse.bosh_service_url);
converse.connection.connect(jid, password, converse.onConnect);
},
initialize: function (cfg) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment