Add refresh after enter in sales and receivings register (#572)

This commit is contained in:
jekkos committed 2016-05-20 17:28:56 +02:00
1 parent 41b3d00fb2
commit ec20eb96df
2 files changed
+18 -2

No files matched your search

@@ -459,6 +459,14 @@ $(document).ready(function()
}
});
$("#cart_contents input").keypress(function(event)
{
if (event.which == 13)
{
$('#cart_' + (1 + $(this).index() / 2 )).submit();
}
});
table_support.handle_submit = function(resource, response, stay_open)
{
if(response.success)
+10 -2
View File
@@ -641,8 +641,16 @@ $(document).ready(function()
$('#add_payment_form').submit();
});
$("#payment_types").change(check_payment_type_giftcard).ready(check_payment_type_giftcard)
$("#payment_types").change(check_payment_type_giftcard).ready(check_payment_type_giftcard);
$("#cart_contents input").keypress(function(event)
{
if (event.which == 13)
{
$('#cart_' + (1 + $(this).index() / 2 )).submit();
}
});
$("#amount_tendered").keypress(function(event)
{
if( event.which == 13 )