From 22c0d8446fa595aae697f890bdc63bea3a63e08c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 6 Sep 2010 11:04:01 +0000 Subject: [PATCH] Qual: Code is now simpler using jQuery. Removed rubbish javascript. --- htdocs/admin/const.php | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/htdocs/admin/const.php b/htdocs/admin/const.php index 8dcc005d0fd..423bf84cdc2 100644 --- a/htdocs/admin/const.php +++ b/htdocs/admin/const.php @@ -110,6 +110,27 @@ if ($_GET["action"] == 'delete') llxHeader('',$langs->trans("OtherSetup")); +// Add logic to shoow/hide buttons +if ($conf->use_javascript_ajax) +{ +?> + +trans("OtherSetup"),'','setup'); print $langs->trans("ConstDesc")."
\n"; @@ -137,7 +158,7 @@ print '
'; print ''; print ''; -print "\n"; +print ''."\n"; print ''; print ''; print ''; @@ -200,14 +221,12 @@ if ($result) // Value print ''; - print 'use_javascript_ajax) print ' onKeyPress="displayElement(\'updateconst\'); checkBox(\'check_'.$i.'\');"'; + print ''; print ''; // Note - print 'use_javascript_ajax) print ' onKeyPress="displayElement(\'updateconst\'); checkBox(\'check_'.$i.'\');"'; + print ''; print ''; @@ -226,7 +245,7 @@ if ($result) print ''; if ($conf->use_javascript_ajax) { - print ''; + print ''; print '   '; } else @@ -247,10 +266,10 @@ print ''; if ($conf->use_javascript_ajax) { print '
'; - print '