equal
deleted
inserted
replaced
707 // Insert the entire form into the login window |
707 // Insert the entire form into the login window |
708 logindata.mb_inner.innerHTML = ''; |
708 logindata.mb_inner.innerHTML = ''; |
709 logindata.mb_inner.appendChild(div); |
709 logindata.mb_inner.appendChild(div); |
710 |
710 |
711 // Post operations: field focus |
711 // Post operations: field focus |
712 if ( IE ) |
712 setTimeout( |
713 { |
713 function() |
714 setTimeout( |
714 { |
715 function() |
715 if ( logindata.loggedin_username ) |
716 { |
716 document.getElementById('ajax_login_field_password').focus(); |
717 if ( logindata.loggedin_username ) |
717 else |
718 document.getElementById('ajax_login_field_password').focus(); |
718 document.getElementById('ajax_login_field_username').focus(); |
719 else |
719 }, 750); |
720 document.getElementById('ajax_login_field_username').focus(); |
|
721 }, 200); |
|
722 } |
|
723 else |
|
724 { |
|
725 if ( data.username ) |
|
726 f_password.focus(); |
|
727 else |
|
728 f_username.focus(); |
|
729 } |
|
730 |
720 |
731 // Post operations: show captcha window |
721 // Post operations: show captcha window |
732 if ( show_captcha ) |
722 if ( show_captcha ) |
733 ajaxShowCaptcha(show_captcha); |
723 ajaxShowCaptcha(show_captcha); |
734 |
724 |