From 0b82d071757662f0408a963b5de19a66542b4b2d Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 14 Jun 2006 07:48:53 +0000 Subject: [PATCH] Fix: affichait encore le dernier produit en double (ajax) --- htdocs/html.form.class.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 3b932c31301..8887d81c268 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -703,7 +703,6 @@ class Form global $langs,$conf,$user; if($conf->use_ajax) { - print ''; print $langs->trans("Ref").':   '; print $langs->trans("Label").':'; print ''; @@ -711,7 +710,6 @@ class Form print 'var url = \''.DOL_URL_ROOT.'/ajaxresponse.php\';'; print 'new Form.Element.Observer($("ajkeyref'.$htmlname.'"), 1, function(){var myAjax = new Ajax.Updater( {success: \'ajdynfield'.$htmlname.'\'}, url, {method: \'get\', parameters: "keyref="+$("ajkeyref'.$htmlname.'").value+"&htmlname='.$htmlname.'&price_level='.$price_level.'"});});'; print 'new Form.Element.Observer($("ajkeylabel'.$htmlname.'"), 1, function(){var myAjax = new Ajax.Updater( {success: \'ajdynfield'.$htmlname.'\'}, url, {method: \'get\', parameters: "keylabel="+$("ajkeylabel'.$htmlname.'").value+"&htmlname='.$htmlname.'&price_level='.$price_level.'"});});'; - print 'function publish_selvalue(obj){$("'.$htmlname.'").value = obj.options[obj.selectedIndex].value;}'; print ''; print '
'; }