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">
|
<body class="body bodylogin">
|
||||||
|
|
||||||
|
<?php if (empty($conf->dol_use_jmobile)) { ?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
// Set focus on correct field
|
// Set focus on correct field
|
||||||
<?php if ($focus_element) { ?>$('#<?php echo $focus_element; ?>').focus(); <?php } ?> // Warning to use this only on visible element
|
<?php if ($focus_element) { ?>$('#<?php echo $focus_element; ?>').focus(); <?php } ?> // Warning to use this only on visible element
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
<center>
|
<center>
|
||||||
|
|
||||||
|
|||||||
@ -31,13 +31,14 @@ print top_htmlhead('',$langs->trans('Login').' '.$title);
|
|||||||
|
|
||||||
<body class="bodylogin">
|
<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">
|
<script type="text/javascript">
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
// Set focus on correct field
|
// Set focus on correct field
|
||||||
<?php if ($focus_element) { ?>$('#<?php echo $focus_element; ?>').focus(); <?php } ?> // Warning to use this only on visible element
|
<?php if ($focus_element) { ?>$('#<?php echo $focus_element; ?>').focus(); <?php } ?> // Warning to use this only on visible element
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
<center>
|
<center>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user