dolibarr-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-cvs] dolibarr/htdocs html.form.class.php


From: Regis Houssin
Subject: [Dolibarr-cvs] dolibarr/htdocs html.form.class.php
Date: Wed, 14 Jun 2006 07:48:53 +0000

CVSROOT:        /cvsroot/dolibarr
Module name:    dolibarr
Changes by:     Regis Houssin <hregis>  06/06/14 07:48:53

Modified files:
        htdocs         : html.form.class.php 

Log message:
        Fix: affichait encore le dernier produit en double (ajax)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/dolibarr/htdocs/html.form.class.php?cvsroot=dolibarr&r1=1.250&r2=1.251

Patches:
Index: html.form.class.php
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/html.form.class.php,v
retrieving revision 1.250
retrieving revision 1.251
diff -u -b -r1.250 -r1.251
--- html.form.class.php 13 Jun 2006 23:55:33 -0000      1.250
+++ html.form.class.php 14 Jun 2006 07:48:53 -0000      1.251
@@ -21,14 +21,14 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
- * $Id: html.form.class.php,v 1.250 2006/06/13 23:55:33 eldy Exp $
+ * $Id: html.form.class.php,v 1.251 2006/06/14 07:48:53 hregis Exp $
  * $Source: /cvsroot/dolibarr/dolibarr/htdocs/html.form.class.php,v $
  */
 
 /**
         \file       htdocs/html.form.class.php
         \brief      Fichier de la classe des fonctions prédéfinie de 
composants html
-        \version    $Revision: 1.250 $
+        \version    $Revision: 1.251 $
 */
 
 
@@ -703,7 +703,6 @@
                global $langs,$conf,$user;
                if($conf->use_ajax)
                {
-                       print '<script type="text/javascript" 
src="'.DOL_URL_ROOT.'/lib/prototype.js"></script>';
                        print $langs->trans("Ref").':<input type="text" 
size="8" name="ajkeyref'.$htmlname.'" id="ajkeyref'.$htmlname.'">&nbsp; &nbsp;';
                        print $langs->trans("Label").':<input type="text" 
size="16" name="ajkeylabel'.$htmlname.'" id="ajkeylabel'.$htmlname.'">';
                        print '<input type="hidden" name="'.$htmlname.'" 
id="'.$htmlname.'" value="">';
@@ -711,7 +710,6 @@
                        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 '</script>';
                        print '<div class="notopnoleftnoright" 
id="ajdynfield'.$htmlname.'"></div>';
                }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]