includes/clientside/static/login.js
changeset 461 717e71109645
parent 460 3a1c99845ca8
child 471 7906fb190fc1
equal deleted inserted replaced
460:3a1c99845ca8 461:717e71109645
   325     new messagebox(MB_ICONSTOP | MB_OK, 'FIXME L10N: There was an error in the login process', 'The following error code came from the server:<br />' + response.error);
   325     new messagebox(MB_ICONSTOP | MB_OK, 'FIXME L10N: There was an error in the login process', 'The following error code came from the server:<br />' + response.error);
   326     return false;
   326     return false;
   327   }
   327   }
   328   // Rid ourselves of any loading windows
   328   // Rid ourselves of any loading windows
   329   ajaxLoginSetStatus(AJAX_STATUS_DESTROY);
   329   ajaxLoginSetStatus(AJAX_STATUS_DESTROY);
   330   if ( IE )
       
   331   {
       
   332     alert('Login: got AJAX response');
       
   333   }
       
   334   // Main mode switch
   330   // Main mode switch
   335   switch ( response.mode )
   331   switch ( response.mode )
   336   {
   332   {
   337     case 'build_box':
   333     case 'build_box':
   338       // The server wants us to build the login form, all the information is there
   334       // The server wants us to build the login form, all the information is there
   432   f_password.size = '25';
   428   f_password.size = '25';
   433   if ( !show_captcha )
   429   if ( !show_captcha )
   434   {
   430   {
   435     f_password.onkeyup = function(e)
   431     f_password.onkeyup = function(e)
   436     {
   432     {
   437       if ( !e.keyCode )
   433       if ( !e )
   438         e = window.event;
   434         e = window.event;
   439       if ( !e.keyCode )
   435       if ( !e && IE )
   440         return true;
   436         return true;
   441       if ( e.keyCode == 13 )
   437       if ( e.keyCode == 13 )
   442       {
   438       {
   443         ajaxLoginSubmitForm();
   439         ajaxLoginSubmitForm();
   444       }
   440       }