equal
deleted
inserted
replaced
1409 */ |
1409 */ |
1410 |
1410 |
1411 function username_field($name, $value = false) |
1411 function username_field($name, $value = false) |
1412 { |
1412 { |
1413 $randomid = md5( time() . microtime() . mt_rand() ); |
1413 $randomid = md5( time() . microtime() . mt_rand() ); |
1414 $text = '<input name="'.$name.'" onkeyup="ajaxUserNameComplete(this)" autocomplete="off" type="text" size="30" id="userfield_'.$randomid.'"'; |
1414 $text = '<input name="'.$name.'" onkeyup="new AutofillUsername(this);" autocomplete="off" type="text" size="30" id="userfield_'.$randomid.'"'; |
1415 if($value) $text .= ' value="'.$value.'"'; |
1415 if($value) $text .= ' value="'.$value.'"'; |
1416 $text .= ' />'; |
1416 $text .= ' />'; |
1417 return $text; |
1417 return $text; |
1418 } |
1418 } |
1419 |
1419 |