Fix: No set focus
This commit is contained in:
parent
d72167d543
commit
031fd2f8b8
@ -33,12 +33,14 @@ print top_htmlhead('',$titleofloginpage,0,0,$arrayofjs);
|
||||
|
||||
<body class="body bodylogin">
|
||||
|
||||
<?php if (empty($conf->dol_use_jmobile)) { ?>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
// Set focus on correct field
|
||||
<?php if ($focus_element) { ?>$('#<?php echo $focus_element; ?>').focus(); <?php } ?> // Warning to use this only on visible element
|
||||
});
|
||||
</script>
|
||||
<?php } ?>
|
||||
|
||||
<center>
|
||||
|
||||
|
||||
@ -31,13 +31,14 @@ print top_htmlhead('',$langs->trans('Login').' '.$title);
|
||||
|
||||
<body class="bodylogin">
|
||||
|
||||
<!-- Javascript code on logon page only to detect user tz, dst_observed, dst_first, dst_second -->
|
||||
<?php if (empty($conf->dol_use_jmobile)) { ?>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
// Set focus on correct field
|
||||
<?php if ($focus_element) { ?>$('#<?php echo $focus_element; ?>').focus(); <?php } ?> // Warning to use this only on visible element
|
||||
});
|
||||
</script>
|
||||
<?php } ?>
|
||||
|
||||
<center>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user