170170
171171echo '
172172 </div>
173- <div class="card-body" id="list"> ' ;
173+ <div class="card-body" id="list-receiptfe "> ' ;
174174
175175if (Interaction::isEnabled ()) {
176176 echo '
@@ -210,12 +210,12 @@ function applySearchFilter() {
210210
211211 // Mostra tutte le righe se il campo di ricerca è vuoto
212212 if(searchValue.length === 0) {
213- $("table tbody tr").show();
213+ $("#list-receiptfe table tbody tr").show();
214214 return;
215215 }
216216
217217 // Aggiungi un effetto di evidenziazione durante la ricerca
218- $("table tbody tr").each(function() {
218+ $("#list-receiptfe table tbody tr").each(function() {
219219 var rowText = $(this).text().toLowerCase();
220220 var match = rowText.indexOf(searchValue) > -1;
221221
@@ -227,25 +227,25 @@ function applySearchFilter() {
227227 });
228228
229229 // Mostra un messaggio se non ci sono risultati
230- if($("table tbody tr:visible").length === 0) {
231- if($("#no-results-message").length === 0) {
232- $("table tbody").append("<tr id=\"no-results-message\"><td colspan=\"3\" class=\"text-center text-muted py-3\"><i class=\"fa fa-search mr-2\"></i>"+globals.translations.no_results_found+" \"" + searchValue + "\"</td></tr>");
230+ if($("#list-receiptfe table tbody tr:visible").length === 0) {
231+ if($("#list-receiptfe # no-results-message").length === 0) {
232+ $("#list-receiptfe table tbody").append("<tr id=\"no-results-message\"><td colspan=\"3\" class=\"text-center text-muted py-3\"><i class=\"fa fa-search mr-2\"></i>"+globals.translations.no_results_found+" \"" + searchValue + "\"</td></tr>");
233233 } else {
234- $("#no-results-message td").html("<i class=\"fa fa-search mr-2\"></i>"+globals.translations.no_results_found+" \"" + searchValue + "\"");
234+ $("#list-receiptfe # no-results-message td").html("<i class=\"fa fa-search mr-2\"></i>"+globals.translations.no_results_found+" \"" + searchValue + "\"");
235235 }
236236 } else {
237- $("#no-results-message").remove();
237+ $("#list-receiptfe # no-results-message").remove();
238238 }
239239}
240240
241241function searchReceipts(button) {
242242 var restore = buttonLoading(button);
243243
244244 // Mostra un \'animazione di caricamento nella lista
245- $("#list").html("<div class=\"text-center py-5\"><i class=\"fa fa-refresh fa-spin fa-3x fa-fw text-primary\"></i><div class=\"mt-3\">"+globals.translations.searching+"</div></div>");
245+ $("#list-receiptfe ").html("<div class=\"text-center py-5\"><i class=\"fa fa-refresh fa-spin fa-3x fa-fw text-primary\"></i><div class=\"mt-3\">"+globals.translations.searching+"</div></div>");
246246
247247 // Carica la lista delle ricevute con parametro per forzare refresh cache
248- $("#list").load(" ' .$ structure ->fileurl ('list.php ' ).'?id_module= ' .$ id_module .'&id_plugin= ' .$ id_plugin .'&refresh_cache=" + Date.now(), function() {
248+ $("#list-receiptfe ").load(" ' .$ structure ->fileurl ('list.php ' ).'?id_module= ' .$ id_module .'&id_plugin= ' .$ id_plugin .'&refresh_cache=" + Date.now(), function() {
249249 buttonRestore(button, restore);
250250
251251 // Applica il filtro di ricerca se presente
@@ -361,7 +361,7 @@ function importAllReceipt(btn) {
361361 html += "<br><small> ' .tr ("Se si sono verificati degli errori durante la procedura e il problema continua a verificarsi, contatta l'assistenza ufficiale " ).'</small>";
362362 }
363363
364- $("#list").load(" ' .$ structure ->fileurl ('list.php ' ).'?id_module= ' .$ id_module .'&id_plugin= ' .$ id_plugin .'", function() {
364+ $("#list-receiptfe ").load(" ' .$ structure ->fileurl ('list.php ' ).'?id_module= ' .$ id_module .'&id_plugin= ' .$ id_plugin .'", function() {
365365 swal({
366366 title: " ' .tr ('Operazione completata! ' ).'",
367367 html: html,
0 commit comments