diff --git a/EveryThing/Pages/Projects/Edit.cshtml b/EveryThing/Pages/Projects/Edit.cshtml index 1f94ae0..e1242cf 100644 --- a/EveryThing/Pages/Projects/Edit.cshtml +++ b/EveryThing/Pages/Projects/Edit.cshtml @@ -614,6 +614,7 @@ }
+ @@ -849,6 +850,14 @@ refreshPrices(); }); + function searchPartItems(input, idProjectPart) { + let filter = $(input).val().toLowerCase(); + $('#accordion-' + idProjectPart + ' tbody tr').each(function() { + let text = $(this).text().toLowerCase(); + $(this).toggle(text.indexOf(filter) > -1); + }); + } + function showAllInvoices() { $(".invoice-row").each(function() { $(this).show();