From ebe8f27c160075d36aadd322483ba37dba6962a1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 13 Apr 2019 10:29:09 +0200 Subject: [PATCH] Fix on smartphone --- htdocs/core/class/html.form.class.php | 4 +++- htdocs/theme/eldy/global.inc.php | 3 +++ htdocs/theme/md/style.css.php | 4 +++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 4b25d23b882..ea8663cab31 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -602,7 +602,9 @@ class Form $ret.=$hookmanager->resPrint; $ret.=''; - $ret.=ajax_combobox('.massactionselect'); + + if (empty($conf->dol_optimize_smallscreen)) $ret.=ajax_combobox('.massactionselect'); + // Warning: if you set submit button to disabled, post using 'Enter' will no more work if there is no another input submit. So we add a hidden button $ret.=''; // Hidden button BEFORE so it is the one used when we submit with ENTER. $ret.=''; diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php index 1951d8edab0..d2f3c2f075e 100644 --- a/htdocs/theme/eldy/global.inc.php +++ b/htdocs/theme/eldy/global.inc.php @@ -91,6 +91,9 @@ input, select { margin-bottom:1px; margin-top:1px; } +input.button.massactionconfirmed { + margin: 4px; +} /* Focus definitions must be after standard definition */ textarea:focus { diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index 68c83f968c5..d7f0974da21 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -323,7 +323,9 @@ input, select { margin-bottom:1px; margin-top:1px; } - +input.button.massactionconfirmed { + margin: 4px; +} textarea { border-radius: 0;