forked from DGNum/gestioCOF
Fix autocomplétion article K-Psul
This commit is contained in:
parent
5e6645ab84
commit
985dd2e82d
1 changed files with 7 additions and 7 deletions
|
@ -635,7 +635,9 @@ $(document).ready(function() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
articleSelect.on('keypress', function(e) {
|
articleSelect.on('keydown', function(e) {
|
||||||
|
console.log('trolo');
|
||||||
|
console.log(e.charCode);
|
||||||
var text = articleSelect.val();
|
var text = articleSelect.val();
|
||||||
// Comportement normal pour ces touches
|
// Comportement normal pour ces touches
|
||||||
if (normalKeys.test(e.keyCode) || e.ctrlKey) {
|
if (normalKeys.test(e.keyCode) || e.ctrlKey) {
|
||||||
|
@ -648,12 +650,10 @@ $(document).ready(function() {
|
||||||
articleSelect.val('');
|
articleSelect.val('');
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
} else if (e.charCode !== 0) {
|
}
|
||||||
if (updateMatchedArticles(text+e.key)) {
|
if (updateMatchedArticles(text+e.key)) {
|
||||||
articleNb.val('1');
|
articleNb.val('1');
|
||||||
articleNb.focus().select();
|
articleNb.focus().select();
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue