on document ready stockdetail filter based on ProductPicker

This commit is contained in:
Kurt Riddlesperger 2020-01-21 22:33:03 -06:00
parent ba2a2ed823
commit 6a77d36bc1

View File

@ -19,7 +19,6 @@ $.fn.dataTable.ext.search.push(function(settings, data, dataIndex)
return false; return false;
}); });
Grocy.Components.ProductPicker.GetPicker().trigger('change');
Grocy.Components.ProductPicker.GetPicker().on('change', function(e) Grocy.Components.ProductPicker.GetPicker().on('change', function(e)
{ {
@ -231,6 +230,8 @@ $(window).on("message", function(e)
} }
}); });
Grocy.Components.ProductPicker.GetPicker().trigger('change');
function UndoStockBookingEntry(bookingId, stockRowId) function UndoStockBookingEntry(bookingId, stockRowId)
{ {
Grocy.Api.Post('stock/bookings/' + bookingId.toString() + '/undo', { }, Grocy.Api.Post('stock/bookings/' + bookingId.toString() + '/undo', { },