From c56047ae20b49c1354b0ed836d959e3be126a532 Mon Sep 17 00:00:00 2001 From: tofulm Date: Thu, 7 Apr 2022 11:07:17 +0200 Subject: [PATCH] on deplace la recherche du champ search --- js/gamutable.es6.js | 6 +++--- js/gamutable.js | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/js/gamutable.es6.js b/js/gamutable.es6.js index d80c953..5cd4725 100644 --- a/js/gamutable.es6.js +++ b/js/gamutable.es6.js @@ -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) { diff --git a/js/gamutable.js b/js/gamutable.js index a740ec7..9987e84 100644 --- a/js/gamutable.js +++ b/js/gamutable.js @@ -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 '); }