From f8974f87f0ab8537b941f37e365ae4649112f10f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 29 Aug 2010 17:38:30 +0000 Subject: [PATCH] Replace javascript by jQuery --- htdocs/comm/address.php | 29 +++++++++++++++++++++++++-- htdocs/core/class/html.form.class.php | 2 +- htdocs/lib/functions.lib.php | 22 -------------------- 3 files changed, 28 insertions(+), 25 deletions(-) diff --git a/htdocs/comm/address.php b/htdocs/comm/address.php index 099ac5939f3..02b014d02bf 100644 --- a/htdocs/comm/address.php +++ b/htdocs/comm/address.php @@ -223,6 +223,31 @@ if ($_GET["action"] == 'create' || $_POST["action"] == 'create') print ''; } + // If javascript enabled, we add interactivity on mandatory fields + if ($conf->use_javascript_ajax) + { + print "\n".''."\n"; + } + print '
'; print ''; print ''; @@ -232,8 +257,8 @@ if ($_GET["action"] == 'create' || $_POST["action"] == 'create') print ''; - print ''; - print ''; + print ''; + print ''; print '
'.$langs->trans('AddressLabel').'trans('RequiredField')).'>
'.$langs->trans('Name').'trans('RequiredField')).'>
'.$langs->trans('AddressLabel').'
'.$langs->trans('Name').'
'.$langs->trans('Address').'