Configure form element and move xmpp config
This commit is contained in:
parent
0d4da2fba8
commit
ef29de8176
1 changed files with 16 additions and 9 deletions
|
|
@ -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!?');
|
||||
|
|
|
|||
Loading…
Reference in a new issue