From 689f5dd1fe66bea536eeb9c432600b0b452a05b0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 11 Dec 2021 18:13:03 +0100 Subject: [PATCH] Fix use of reposition when nojs for confirmation popup --- htdocs/core/class/html.form.class.php | 2 +- htdocs/core/class/html.formfile.class.php | 4 ++-- htdocs/core/tpl/document_actions_post_headers.tpl.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 705f007a7f1..ed9a1421c11 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -4868,7 +4868,7 @@ class Form $more .= $moreonecolumn; } - // JQUI method dialog is broken with jmobile, we use standard HTML. + // JQUERY method dialog is broken with smartphone, we use standard HTML. // Note: When using dol_use_jmobile or no js, you must also check code for button use a GET url with action=xxx and check that you also output the confirm code when action=xxx // See page product/card.php for example if (!empty($conf->dol_use_jmobile)) { diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index cf3ff8dae4e..cff6b48d25e 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -1269,7 +1269,7 @@ class FormFile } print '
'; - print ''."\n"; + print '
'."\n"; if (!empty($addfilterfields)) { print ''; @@ -1504,7 +1504,7 @@ class FormFile if (!empty($conf->global->MAIN_ECM_DISABLE_JS)) { $useajax = 0; } - print ''.img_delete().''; + print ''.img_delete().''; } print ""; diff --git a/htdocs/core/tpl/document_actions_post_headers.tpl.php b/htdocs/core/tpl/document_actions_post_headers.tpl.php index 42276c24234..fdc315a588d 100644 --- a/htdocs/core/tpl/document_actions_post_headers.tpl.php +++ b/htdocs/core/tpl/document_actions_post_headers.tpl.php @@ -74,7 +74,7 @@ if ($action == 'deletefile') { $langs->trans('ConfirmDeleteFile'), 'confirm_deletefile', '', - 0, + '', 1 ); }