From d7f732b68fd84e640317c2c1e4ab5dab624961d4 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 2 Feb 2011 08:39:44 +0000 Subject: [PATCH] Fix: W3C --- htdocs/admin/const.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/admin/const.php b/htdocs/admin/const.php index bc8750e7feb..b630d405919 100644 --- a/htdocs/admin/const.php +++ b/htdocs/admin/const.php @@ -122,9 +122,10 @@ jQuery(document).ready(function() { jQuery("#delconst").show(); }); jQuery(".inputforupdate").keypress(function() { + var field_id = jQuery(this).attr("id"); + var row_num = field_id.split("_"); jQuery("#updateconst").show(); - tmp=jQuery(this).attr("id"); - jQuery("#check_"+tmp).attr("checked",true); + jQuery("#check_" + row_num[1]).attr("checked",true); }); }); @@ -245,7 +246,7 @@ if ($result) print ''; if ($conf->use_javascript_ajax) { - print ''; + print ''; print '   '; } else