Finished shopping list feature

This commit is contained in:
Bernd Bestel
2017-04-21 19:02:00 +02:00
parent c6925ba4c3
commit d1bd21a601
9 changed files with 96 additions and 20 deletions

View File

@@ -57,6 +57,7 @@ $('#product_id').on('change', function(e)
$('#selected-product-last-used-timeago').text($.timeago(productDetails.last_used || ''));
$('#amount').attr('max', productDetails.stock_amount);
$('#consumption-form').validator('update');
$('#amount_qu_unit').text(productDetails.quantity_unit_stock.name);
Grocy.EmptyElementWhenMatches('#selected-product-last-purchased-timeago', 'NaN years ago');
Grocy.EmptyElementWhenMatches('#selected-product-last-used-timeago', 'NaN years ago');