adding focus

on input with id 'crement' if available in view
This commit is contained in:
s72785 2015-07-21 14:33:37 +02:00
parent 323cfddb90
commit 8a9ee104ff

View file

@ -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