on deplace la recherche du champ search

This commit is contained in:
Christophe 2022-04-07 11:07:17 +02:00
parent dbb3607275
commit c56047ae20
2 changed files with 7 additions and 7 deletions

View file

@ -413,6 +413,9 @@ let monTableau = {
data = recupJson(data);
if (data && data.length) {
that.table = data;
if (data[0].search) {
that.champ_search = 'search';
}
if (filtreCol !== undefined) {
that.filtreColType = filtreCol;
Object.keys(that.filtreColType).forEach((col) => {
@ -429,9 +432,6 @@ let monTableau = {
that.filtreColSelected[col] = [];
});
}
if (data[0].search) {
that.champ_search = 'search';
}
console.log('fin chargement local forage ');
}
if (that.nomblocajaxreload) {

View file

@ -474,6 +474,10 @@ var monTableau = {
if (data && data.length) {
that.table = data;
if (data[0].search) {
that.champ_search = 'search';
}
if (filtreCol !== undefined) {
that.filtreColType = filtreCol;
Object.keys(that.filtreColType).forEach(function (col) {
@ -492,10 +496,6 @@ var monTableau = {
});
}
if (data[0].search) {
that.champ_search = 'search';
}
console.log('fin chargement local forage ');
}