From 608f87d03ba3787abb4ef56b8ab52accbfc0e501 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 2 Nov 2017 16:14:24 +0100 Subject: [PATCH] Set focus on first field to fill. --- htdocs/admin/translation.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/htdocs/admin/translation.php b/htdocs/admin/translation.php index 8505fab25b9..d42ae4b2ade 100644 --- a/htdocs/admin/translation.php +++ b/htdocs/admin/translation.php @@ -298,9 +298,9 @@ if ($mode == 'overwrite') print $formadmin->select_language(GETPOST('langcode'), 'langcode', 0, null, 1, 0, $disablededit?1:0, 'maxwidthonsmartphone', 1); print ''."\n"; print ''; - print ''; + print ''; print ''; - print ''; + print ''; print ''; // Limit to superadmin /*if (! empty($conf->multicompany->enabled) && !$user->entity) @@ -570,6 +570,10 @@ dol_fiche_end(); print "\n"; +if (! empty($langcode)) +{ + dol_set_focus('#transvalue'); +} llxFooter();