fix scan barcode only one time instead of 2 (when it was focus we need to open and then write)
This commit is contained in:
parent
f1055d0e5c
commit
95593bfaad
@ -2772,7 +2772,12 @@ elseif (! empty($object->id))
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$('#idprodfournprice').select2('focus');
|
||||
if ($('*:focus').length == 0) {
|
||||
$(document).one('keydown',function(e) {
|
||||
$('#idprodfournprice').select2('open');
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
|
||||
@ -3237,7 +3237,12 @@ else
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$('#idprodfournprice').select2('focus');
|
||||
if ($('*:focus').length == 0) {
|
||||
$(document).one('keydown',function(e) {
|
||||
$('#idprodfournprice').select2('open');
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
|
||||
Loading…
Reference in New Issue
Block a user