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