Bugfix. Set the connection attr on converse. Updates #41
This commit is contained in:
parent
35d8f1d7e8
commit
f96c52a09a
@ -2517,13 +2517,11 @@
|
|||||||
'<input type="text" id="bosh_service_url">'),
|
'<input type="text" id="bosh_service_url">'),
|
||||||
|
|
||||||
connect: function ($form, jid, password) {
|
connect: function ($form, jid, password) {
|
||||||
var button = null,
|
|
||||||
connection = new Strophe.Connection(converse.bosh_service_url);
|
|
||||||
if ($form) {
|
if ($form) {
|
||||||
$button = $form.find('input[type=submit]');
|
$form.find('input[type=submit]').hide().after('<span class="spinner login-submit"/>');
|
||||||
$button.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) {
|
initialize: function (cfg) {
|
||||||
|
Loading…
Reference in New Issue
Block a user