FIX js focusing
This commit is contained in:
parent
72dc25552a
commit
e39f85ac4d
1 changed files with 6 additions and 4 deletions
|
|
@ -280,11 +280,13 @@ else {
|
|||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function(){
|
||||
if ($('*:focus').length == 0) {
|
||||
$(document).one('keypress',function(e) {
|
||||
$('#idprodfournprice').select2('open');
|
||||
|
||||
$(document).on('keypress',function(e) {
|
||||
if ($('input:focus').length == 0) {
|
||||
$('#idprodfournprice').select2('open');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue