diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 1c9dd350859..c694933f85c 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -503,7 +503,8 @@ class Form
$ret.='';
}
$ret.='';
- $ret.='';
+ // Warning: if you set submit button to disabled, post using Enter will no more work
+ $ret.='';
$ret.='';
$ret.='
@@ -516,7 +517,6 @@ class Form
/* console.log( index + ": " + $( this ).text() ); */
if ($(this).is(\':checked\')) atleastoneselected++;
});
- console.log(atleastoneselected);
if (atleastoneselected)
{
jQuery(".massaction").show();
@@ -530,6 +530,7 @@ class Form
jQuery(".checkforselect").click(function() {
initCheckForSelect();
});
+ /* Warning: if you set submit button to disabled, post using Enter will no more work
jQuery(".massactionselect").change(function() {
console.log( $( this ).val() );
if ($(this).val() != \'0\')
@@ -541,6 +542,7 @@ class Form
jQuery(".massactionconfirmed").prop(\'disabled\', true);
}
});
+ */
});
';