Fixed a warning in tables in CP

This commit is contained in:
Pinga 2024-10-24 10:55:11 +03:00
parent 2e65838a4e
commit 0fa8722133
17 changed files with 34 additions and 68 deletions

View file

@ -22,15 +22,13 @@
initialSort:[
{column:"date", dir:"desc"}, // sorting by the "cldate" field in descending order
],
placeholder: "{{ __('No Data') }}",
columns:[
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0},
{title:"{{ __('Registrar') }}", field:"registrar_id.name", headerSort:true, responsive:0},
{title:"{{ __('Date') }}", field:"date", headerSort:true, responsive:0},
{title:"{{ __('Log') }}", field:"log", headerSort:true, responsive:2},
],
placeholder:function(){
return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters
}
]
});
var searchInput = document.getElementById("search-input");
searchInput.addEventListener("input", function () {