Add search filter to services admin list; refresh load_services.json

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Ubuntu
2026-05-09 12:41:04 +00:00
co-authored by Claude Opus 4.7
parent 52e00216f7
commit d7bdcac978
2 changed files with 19 additions and 3 deletions
@@ -4,7 +4,10 @@
<a href="<?php echo SITEURL;?>services/add-service" class="submitBtn">Új szolgáltatás</a>
</div>
<div class="form-row">
<table class="tableClass">
<input type="text" id="service-search" class="formInputBox" placeholder="Keresés..." style="padding:6px 10px;" autocomplete="off">
</div>
<div class="form-row">
<table class="tableClass" id="services-table">
<tr>
<td style="min-width:55px;"></td>
<td>#</td>
@@ -60,4 +63,17 @@
</table>
</div>
</div>
</div>
<script>
$(document).ready(function(){
$('#service-search').on('keyup', function(){
var q = $(this).val().toLowerCase().trim();
$('#services-table tr').each(function(idx){
if(idx === 0) return;
var text = $(this).text().toLowerCase();
$(this).toggle(q === '' || text.indexOf(q) !== -1);
});
});
});
</script>
+1 -1
View File
File diff suppressed because one or more lines are too long