From 3972267c3bdc0f0eddf6ebf58545f216cf3b81f1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 5 Feb 2011 02:30:13 +0000 Subject: [PATCH] Fix: ajax select of company works with keyboard --- htdocs/core/class/html.formcompany.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/html.formcompany.class.php b/htdocs/core/class/html.formcompany.class.php index b9463f3bb67..fb4fe870361 100644 --- a/htdocs/core/class/html.formcompany.class.php +++ b/htdocs/core/class/html.formcompany.class.php @@ -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".''."\n"; print '';