Added autofocus to the product return field
This commit is contained in:
parent
6f62515238
commit
9ec0efd81d
@ -100,7 +100,12 @@ function replace(fragment, replacements) {
|
||||
function returnProduct(event) {
|
||||
event.preventDefault()
|
||||
var form = event.currentTarget
|
||||
ajaxRequest('return', dataListFromForm(form), showResult)
|
||||
var handleResult = function(result) {
|
||||
showResult(result)
|
||||
form.serial.value = ''
|
||||
form.serial.select()
|
||||
}
|
||||
ajaxRequest('return', dataListFromForm(form), handleResult)
|
||||
}
|
||||
|
||||
function checkoutProduct(event) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user