Browse Source

Removes comments (fixes warnings).

master
Boris Grozev 10 years ago
parent
commit
657a3fb2e1
1 changed files with 0 additions and 4 deletions
  1. 0
    4
      modules/UI/authentication/LoginDialog.js

+ 0
- 4
modules/UI/authentication/LoginDialog.js View File

24
 
24
 
25
     var message = '<h2 data-i18n="dialog.passwordRequired">';
25
     var message = '<h2 data-i18n="dialog.passwordRequired">';
26
     message += APP.translation.translateString("dialog.passwordRequired");
26
     message += APP.translation.translateString("dialog.passwordRequired");
27
-    // ++__authdomain__
28
     message += '</h2>' +
27
     message += '</h2>' +
29
         '<input name="username" type="text" ';
28
         '<input name="username" type="text" ';
30
     if (config.hosts.authdomain) {
29
     if (config.hosts.authdomain) {
35
     message += '<input name="password" ' +
34
     message += '<input name="password" ' +
36
         'type="password" data-i18n="[placeholder]dialog.userPassword"' +
35
         'type="password" data-i18n="[placeholder]dialog.userPassword"' +
37
         ' placeholder="user password">';
36
         ' placeholder="user password">';
38
-    // --__authdomain__
39
 
37
 
40
     var okButton = APP.translation.generateTranslationHTML("dialog.Ok");
38
     var okButton = APP.translation.generateTranslationHTML("dialog.Ok");
41
 
39
 
56
                     var password = f.password;
54
                     var password = f.password;
57
                     if (jid && password) {
55
                     if (jid && password) {
58
                         stop = false;
56
                         stop = false;
59
-                        //++__authdomain__ complete jid by appending @<domain> if no @ was found in jid
60
                         if (jid.indexOf("@") < 0) {
57
                         if (jid.indexOf("@") < 0) {
61
                           jid = jid.concat('@');
58
                           jid = jid.concat('@');
62
                           if (config.hosts.authdomain) {
59
                           if (config.hosts.authdomain) {
65
                             jid += config.hosts.domain;
62
                             jid += config.hosts.domain;
66
                           }
63
                           }
67
                         }
64
                         }
68
-                        // --__authdomain__
69
                         connection.reset();
65
                         connection.reset();
70
                         connDialog.goToState('connecting');
66
                         connDialog.goToState('connecting');
71
                         connection.connect(jid, password, stateHandler);
67
                         connection.connect(jid, password, stateHandler);

Loading…
Cancel
Save