Explorar o código

fix filtri ricevute

FabioFratini hai 8 meses
pai
achega
f8b6e69ddc
Modificáronse 1 ficheiros con 6 adicións e 3 borrados
  1. 6 3
      resources/views/livewire/receipt.blade.php

+ 6 - 3
resources/views/livewire/receipt.blade.php

@@ -438,9 +438,12 @@ $(document).ready(function () {
                     "url": "/assets/js/Italian.json"
                 },
                 "fnInitComplete": function (oSettings, json) {
-                    var html = '&nbsp;<a href="#" class="showHideFilter btn--ui"><i class="fa-solid fa-sliders"></i></a>';
-                    $(".dt-search").append(html);
-                }
+                    if ($(".dt-search .showHideFilter").length === 0) {
+                        var html = '&nbsp;<a href="#" class="showHideFilter btn--ui"><i class="fa-solid fa-sliders"></i></a>';
+                        console.log(html);
+                        $(".dt-search").append(html);
+                    }
+                },
             });
             $('#tablesaw-350 thead tr th').addClass('col');
             $('#tablesaw-350 thead tr th').css("background-color", "#f6f8fa");