Made some forms more convenient (input handling)

This commit is contained in:
Bernd Bestel
2017-11-05 11:29:17 +01:00
parent 05a9406a32
commit dad6322bac
5 changed files with 20 additions and 0 deletions

View File

@@ -84,6 +84,8 @@ $('#product_id').on('change', function(e)
$('#new_amount').attr('not-equal', productDetails.stock_amount);
$('#new_amount_qu_unit').text(productDetails.quantity_unit_stock.name);
$('#new_amount').focus();
Grocy.EmptyElementWhenMatches('#selected-product-last-purchased-timeago', 'NaN years ago');
Grocy.EmptyElementWhenMatches('#selected-product-last-used-timeago', 'NaN years ago');
},