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