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 = { - +