From 828c892b032151511d8dc20e689ae3d58cd4be5e Mon Sep 17 00:00:00 2001 From: tofulm Date: Thu, 5 Jan 2023 13:54:07 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20pour=20les=20cellules=20o=C3=B9=20les?= =?UTF-8?q?=20crayons=20sont=20branch=C3=A9s=20sur=20une=20table=20annexe?= =?UTF-8?q?=20(=3D=20diff=C3=A9rente=20de=20la=20table=20principale=20qui?= =?UTF-8?q?=20fournit=20l'id=20de=20la=20ligne),=20utiliser=20la=20valeur?= =?UTF-8?q?=20du=20champ=20crayons=20pour=20transmettre=20l'id=20de=20la?= =?UTF-8?q?=20table=20annexe=20=C3=A0=20=C3=A9diter.=20Ce=20qui=20donne=20?= =?UTF-8?q?:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit crayons : { nom_du_champ : id_table_annexe } --- js/gamutable.es6.js | 5 +- js/gamutable.js | 188 ++++++++++++++++++++++++++++++++------- json_gamutable.json.html | 9 +- 3 files changed, 165 insertions(+), 37 deletions(-) diff --git a/js/gamutable.es6.js b/js/gamutable.es6.js index 9af5a5b..69ca2a3 100644 --- a/js/gamutable.es6.js +++ b/js/gamutable.es6.js @@ -675,7 +675,8 @@ let monTableau = { let to = page * parPage; return tableau.slice(from, to); }, - afficher_crayons(name, id) { + afficher_crayons(name, l) { + let id = l.crayons !== undefined && l.crayons[name] !== undefined ? l.crayons[name] : l.html.id; if (Object.keys(this.crayons).indexOf(name) !== -1) { return `crayon ${this.crayons[name]}-${name}-${id}`; } @@ -969,7 +970,7 @@ let monTableau = { - +