Fix: ajax select of company works with keyboard
This commit is contained in:
parent
f4433923b7
commit
3972267c3b
@ -534,7 +534,8 @@ class FormCompany
|
||||
|
||||
// We call a page after a small delay when a new input has been selected
|
||||
$javaScript = "window.location=\'./contact.php?".$var_id."=".$object->id."&".$htmlname."=\' + document.getElementById(\'".$htmlname."\').value;";
|
||||
$htmloption = 'onChange="ac_delay(\''.$javaScript.'\',\'500\')"';
|
||||
$htmloption = 'onChange="ac_delay(\''.$javaScript.'\',\'500\');"'; // When we select with mouse
|
||||
$htmloption.= 'onKeyUp="if (event.keyCode== 13) { ac_delay(\''.$javaScript.'\',\'500\'); }"'; // When we select with keyboard
|
||||
|
||||
print "\n".'<!-- Input text for third party with Ajax.Autocompleter (selectCompaniesForNewContact) -->'."\n";
|
||||
print '<table class="nobordernopadding"><tr class="nobordernopadding">';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user