plugins/SpecialUserFuncs.php
changeset 407 35d94240a197
parent 404 fb4f9e6f378f
child 411 d1a95497b68f
equal deleted inserted replaced
406:7468a663315f 407:35d94240a197
   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;