From ab2ac26f170a05ed03765683d44950d3f3a714b5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 10 Feb 2016 19:27:22 +0100 Subject: [PATCH] NEW When a field to show into list is selected, the form is automatically submited --- htdocs/core/class/html.form.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 7ad26f99dd5..82697c331a2 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -4995,7 +4995,10 @@ class Form else { $(\'.'.$htmlname.'\').val( $(\'.'.$htmlname.'\').val().replace(title, \'\') ) } - }); + // Now, we submit page + $(this).parents(\'form:first\').submit(); + }); + ';