missing 1st char

This commit is contained in:
atm-quentin 2019-02-21 09:47:00 +01:00
parent 7f68750ec9
commit cb3a4ac94c
2 changed files with 6 additions and 2 deletions

View File

@ -2771,10 +2771,12 @@ elseif (! empty($object->id))
?>
<script type="text/javascript">
$(document).ready(function(){
if ($('*:focus').length == 0) {
$(document).one('keydown',function(e) {
$(document).one('keypress',function(e) {
$('#idprodfournprice').select2('open');
$('.select2-search__field').val(e.key);
});
}

View File

@ -3236,10 +3236,12 @@ else
?>
<script type="text/javascript">
$(document).ready(function(){
if ($('*:focus').length == 0) {
$(document).one('keydown',function(e) {
$(document).one('keypress',function(e) {
$('#idprodfournprice').select2('open');
$('.select2-search__field').val(e.key);
});
}