mirror of
https://github.com/grocy/grocy.git
synced 2025-08-28 17:10:11 +00:00
Ui fixes (#1018)
* Fixes #1005. Recipes: filter by stock-status in gallery * Fixes #1017. Productform: Remove "Store"-Header from barcode-table if FEATURE_FLAG_STOCK_PRICE_TRACKING is not set. * Fixed typo Co-authored-by: Bernd Bestel <bernd@berrnd.de>
This commit is contained in:
committed by
GitHub
parent
4b5b7bcb19
commit
b03e43b708
@@ -75,6 +75,23 @@ $("#status-filter").on("change", function()
|
||||
}
|
||||
|
||||
recipesTables.column(5).search(value).draw();
|
||||
|
||||
$('.recipe-gallery-item').removeClass('d-none');
|
||||
if (value !== "")
|
||||
{
|
||||
if (value === 'enoughinstock')
|
||||
{
|
||||
$('.recipe-gallery-item').not('.recipe-enoughinstock').addClass('d-none');
|
||||
}
|
||||
else if (value === 'enoughinstockwithshoppinglist')
|
||||
{
|
||||
$('.recipe-gallery-item').not('.recipe-enoughinstockwithshoppinglist').addClass('d-none');
|
||||
}
|
||||
if (value === 'notenoughinstock')
|
||||
{
|
||||
$('.recipe-gallery-item').not('.recipe-notenoughinstock').addClass('d-none');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$(".recipe-delete").on('click', function(e)
|
||||
|
Reference in New Issue
Block a user