Index: gc_lang/fr/webext/content_scripts/panel_gc.js ================================================================== --- gc_lang/fr/webext/content_scripts/panel_gc.js +++ gc_lang/fr/webext/content_scripts/panel_gc.js @@ -383,13 +383,13 @@ hide () { this.xTooltipArrow.style.display = "none"; this.xTooltip.style.display = "none"; } - _createSuggestion (sErrorId, iSugg, sSugg) { + _createSuggestion (sErrorId, iSuggBlock, iSugg, sSugg) { let xNodeSugg = document.createElement("div"); - xNodeSugg.id = "grammalecte_sugg" + sErrorId + "--" + iSugg.toString(); + xNodeSugg.id = "grammalecte_sugg" + sErrorId + "-" + iSuggBlock.toString() + "-" + iSugg.toString(); xNodeSugg.className = "grammalecte_tooltip_sugg"; xNodeSugg.dataset.error_id = sErrorId; xNodeSugg.textContent = sSugg; return xNodeSugg; } @@ -410,11 +410,11 @@ if (iSuggBlock > 0) { xSuggBlock.appendChild(oGrammalecte.createNode("div", {className: "grammalecte_tooltip_other_sugg_title", textContent: "AUTRES SUGGESTIONS :"})); } let iSugg = 0; for (let sSugg of aSugg) { - xSuggBlock.appendChild(this._createSuggestion(sErrorId, iSugg, sSugg)); + xSuggBlock.appendChild(this._createSuggestion(sErrorId, iSuggBlock, iSugg, sSugg)); xSuggBlock.appendChild(document.createTextNode(" ")); iSugg += 1; } } }