mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-24 00:58:37 -04:00
Enable auto refresh for serialnumber and description (#1154)
This commit is contained in:
1 parent
e55b5a743a
commit
e9aa0068fe
2 files changed
+4
-4
No files matched your search
@@ -516,7 +516,8 @@ $(document).ready(function()
|
||||
}
|
||||
}
|
||||
}
|
||||
$('[name="price"],[name="quantity"],[name="discount"]').focusout(function() {
|
||||
|
||||
$('[name="price"],[name="quantity"],[name="discount"],[name="description"],[name="serialnumber"]').focusout(function() {
|
||||
var index = $(this).parents("tr").index() - 1;
|
||||
$("#cart_" + index).submit();
|
||||
});
|
||||
|
||||
@@ -696,9 +696,8 @@ $(document).ready(function()
|
||||
}
|
||||
}
|
||||
|
||||
$('[name="price"],[name="quantity"],[name="discount"]').focusout(function() {
|
||||
var index = $(this).parents("tr").index() - 1;
|
||||
$("#cart_" + index).submit();
|
||||
$('[name="price"],[name="quantity"],[name="discount"],[name="description"],[name="serialnumber"]').focusout(function() {
|
||||
$(this).parents("tr").prevAll("form:first").submit()
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user