Configure form element and move xmpp config

This commit is contained in:
Lukas Matt 2014-11-24 17:19:57 +01:00
parent 0d4da2fba8
commit ef29de8176

View file

@ -24,15 +24,22 @@ $(document).ready(function() {
displayRosterMinimized: function() {
return true;
},
xmpp: {
url: $('script#jsxc').data('endpoint'),
username: jid.replace(/@.*?$/g, ''),
domain: jid.replace(/^.*?@/g, ''),
jid: jid,
password: data['token'],
resource: 'diaspora-jsxc',
overwrite: true,
onlogin: true
loginForm: {
form: '#jsxc_loginForm'
},
loadSettings: function() {
return {
xmpp: {
url: $('script#jsxc').data('endpoint'),
username: jid.replace(/@.*?$/g, ''),
domain: jid.replace(/^.*?@/g, ''),
jid: jid,
password: data['token'],
resource: 'diaspora-jsxc',
overwrite: true,
onlogin: true
}
}
}
});
} else {