Add clear filter button to stock entries page + mobile view optimizations (this now closes #1129)

This commit is contained in:
Bernd Bestel
2020-11-15 14:48:48 +01:00
parent 7bf973dd32
commit 6866109b97
2 changed files with 31 additions and 2 deletions

View File

@@ -22,12 +22,22 @@ $.fn.dataTable.ext.search.push(function(settings, data, dataIndex)
return false;
});
$("#clear-filter-button").on("click", function()
{
Grocy.Components.ProductPicker.Clear();
stockEntriesTable.draw();
});
Grocy.Components.ProductPicker.GetPicker().on('change', function(e)
{
stockEntriesTable.draw();
});
Grocy.Components.ProductPicker.GetInputElement().on('keyup', function(e)
{
stockEntriesTable.draw();
});
$(document).on('click', '.stock-consume-button', function(e)
{
e.preventDefault();