Removes comments (fixes warnings).
This commit is contained in:
parent
bbbe1fe5c7
commit
657a3fb2e1
|
@ -24,7 +24,6 @@ function Dialog(callback, obtainSession) {
|
||||||
|
|
||||||
var message = '<h2 data-i18n="dialog.passwordRequired">';
|
var message = '<h2 data-i18n="dialog.passwordRequired">';
|
||||||
message += APP.translation.translateString("dialog.passwordRequired");
|
message += APP.translation.translateString("dialog.passwordRequired");
|
||||||
// ++__authdomain__
|
|
||||||
message += '</h2>' +
|
message += '</h2>' +
|
||||||
'<input name="username" type="text" ';
|
'<input name="username" type="text" ';
|
||||||
if (config.hosts.authdomain) {
|
if (config.hosts.authdomain) {
|
||||||
|
@ -35,7 +34,6 @@ function Dialog(callback, obtainSession) {
|
||||||
message += '<input name="password" ' +
|
message += '<input name="password" ' +
|
||||||
'type="password" data-i18n="[placeholder]dialog.userPassword"' +
|
'type="password" data-i18n="[placeholder]dialog.userPassword"' +
|
||||||
' placeholder="user password">';
|
' placeholder="user password">';
|
||||||
// --__authdomain__
|
|
||||||
|
|
||||||
var okButton = APP.translation.generateTranslationHTML("dialog.Ok");
|
var okButton = APP.translation.generateTranslationHTML("dialog.Ok");
|
||||||
|
|
||||||
|
@ -56,7 +54,6 @@ function Dialog(callback, obtainSession) {
|
||||||
var password = f.password;
|
var password = f.password;
|
||||||
if (jid && password) {
|
if (jid && password) {
|
||||||
stop = false;
|
stop = false;
|
||||||
//++__authdomain__ complete jid by appending @<domain> if no @ was found in jid
|
|
||||||
if (jid.indexOf("@") < 0) {
|
if (jid.indexOf("@") < 0) {
|
||||||
jid = jid.concat('@');
|
jid = jid.concat('@');
|
||||||
if (config.hosts.authdomain) {
|
if (config.hosts.authdomain) {
|
||||||
|
@ -65,7 +62,6 @@ function Dialog(callback, obtainSession) {
|
||||||
jid += config.hosts.domain;
|
jid += config.hosts.domain;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// --__authdomain__
|
|
||||||
connection.reset();
|
connection.reset();
|
||||||
connDialog.goToState('connecting');
|
connDialog.goToState('connecting');
|
||||||
connection.connect(jid, password, stateHandler);
|
connection.connect(jid, password, stateHandler);
|
||||||
|
|
Loading…
Reference in New Issue