adding focus
on input with id 'crement' if available in view
This commit is contained in:
parent
323cfddb90
commit
8a9ee104ff
1 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,10 @@ function showBarcode(text) {
|
|||
|
||||
function barcodeKeyPress(event) {
|
||||
var key = String.fromCharCode(event.charCode)
|
||||
var input = document.getElementById('crement')
|
||||
if ( input ) {
|
||||
input.focus()
|
||||
}
|
||||
var focused = document.activeElement
|
||||
if (! focused || focused == document.body) {
|
||||
focused = null
|
||||
|
|
Loading…
Reference in a new issue