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,6 +24,11 @@ $(document).ready(function() {
displayRosterMinimized: function() {
return true;
},
loginForm: {
form: '#jsxc_loginForm'
},
loadSettings: function() {
return {
xmpp: {
url: $('script#jsxc').data('endpoint'),
username: jid.replace(/@.*?$/g, ''),
@ -34,6 +39,8 @@ $(document).ready(function() {
overwrite: true,
onlogin: true
}
}
}
});
} else {
console.error('No token found! Authenticated!?');