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() { displayRosterMinimized: function() {
return true; return true;
}, },
xmpp: { loginForm: {
url: $('script#jsxc').data('endpoint'), form: '#jsxc_loginForm'
username: jid.replace(/@.*?$/g, ''), },
domain: jid.replace(/^.*?@/g, ''), loadSettings: function() {
jid: jid, return {
password: data['token'], xmpp: {
resource: 'diaspora-jsxc', url: $('script#jsxc').data('endpoint'),
overwrite: true, username: jid.replace(/@.*?$/g, ''),
onlogin: true domain: jid.replace(/^.*?@/g, ''),
jid: jid,
password: data['token'],
resource: 'diaspora-jsxc',
overwrite: true,
onlogin: true
}
}
} }
}); });
} else { } else {