iskanje
This commit is contained in:
@@ -614,6 +614,7 @@
|
||||
}
|
||||
|
||||
<div style="float: right">
|
||||
<input type="text" class="form-control form-control-sm d-inline-block" style="width: 150px; vertical-align: middle;" placeholder="Iskanje..." oninput="searchPartItems(this, @part.IdProjectPart);" />
|
||||
<a class="btn btn-xs icon-btn btn-outline-primary borderless" asp-page="/Projects/PrintProjectPartPaths" asp-route-id="@part.IdProjectPart" data-toggle="tooltip" data-placement="top" title="Tiskanje" data-state="primary"><i class="ion ion-md-print"></i></a>
|
||||
<a asp-page="/Files/Upload" asp-route-idReferenceFk="@part.IdProjectPart" asp-route-fileType="@Models.FileType.ProjectPart" class="btn btn-xs icon-btn btn-outline-secondary borderless" data-toggle="tooltip" data-placement="top" title="Priloži datoteko" data-state="secondary"><i class="fas fa-upload"></i></a>
|
||||
<a data-idprojectpart="@part.IdProjectPart" class="btn btn-xs icon-btn btn-outline-secondary borderless" data-toggle="tooltip" data-placement="top" title="Kopiraj del projekta" data-state="secondary" href="javascript:;" onclick="copyProjectPart(this);"><i class="far fa-copy"></i></a>
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user