equal
deleted
inserted
replaced
936 } |
936 } |
937 } |
937 } |
938 |
938 |
939 document.getElementById('e_username').innerHTML = '<br /><small><b>' + $lang.get('user_reg_msg_username_checking') + '</b></small>'; |
939 document.getElementById('e_username').innerHTML = '<br /><small><b>' + $lang.get('user_reg_msg_username_checking') + '</b></small>'; |
940 ajaxGet('<?php echo scriptPath; ?>/ajax.php?title=null&_mode=checkusername&name='+escape(frm.username.value), function() { |
940 ajaxGet('<?php echo scriptPath; ?>/ajax.php?title=null&_mode=checkusername&name='+escape(frm.username.value), function() { |
941 if(ajax.readyState == 4) |
941 if ( ajax.readyState == 4 && ajax.status == 200 ) |
942 if(ajax.responseText == 'good') |
942 if(ajax.responseText == 'good') |
943 { |
943 { |
944 document.getElementById('s_username').src='<?php echo scriptPath; ?>/images/check.png'; |
944 document.getElementById('s_username').src='<?php echo scriptPath; ?>/images/check.png'; |
945 document.getElementById('e_username').innerHTML = '<br /><small><b>' + $lang.get('user_reg_msg_username_available') + '</b></small>'; |
945 document.getElementById('e_username').innerHTML = '<br /><small><b>' + $lang.get('user_reg_msg_username_available') + '</b></small>'; |
946 namegood = true; |
946 namegood = true; |