Hi community, I am having the following problem. It happens that I implement a filter with javascript to show me only certain data.
The code is the following:
$(document).ready(function () {
var list = $("#crd4f_clavearticuo_lookupmodal").find(".entity-lookup").find(".entity-grid").eq(0);
list.on("loaded", function () {
var IdListaPrecio = "{{user.crd4f_listaprecios}}";
console.log("IdListaPrecio: " + IdListaPrecio);
if (IdListaPrecio == IdListaPrecio) {
list.find("table tbody > tr").each(function (index, value) {
var tr = $(this);
var tipos = $(tr).find('td[data-attribute="crd4f_idlistaprecios"]').attr("data-value");
if (tipos != IdListaPrecio) {
console.log("Tipos: " + tipos);
$(tr).remove();
}
});
}
});
});
However, when performing this procedure it shows me the result of the filter between all the pages. For example, the first page does not show me any data:
In this example, the results of my filter start to appear until page number 3:
Is there a way to remove a blank page through javascript?. Or is there some way to solve this?
Can anybody help me out here please?
Cheers folks