Grammalecte  Check-in [9c71e256ea]

Overview
Comment:[fx][bug] fix suggestions from personal dictionary
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256: 9c71e256ea7c43eeb09c791fae885ad8829e165ab43f5ed1dba85f86340cf655
User & Date: olr on 2018-03-19 07:58:07
Other Links: manifest | tags
Context
2018-03-19
08:17
[fr] ocr: faux positif avec <dû + Vinf> check-in: 40d1d7fda9 user: olr tags: fr, trunk
07:58
[fx][bug] fix suggestions from personal dictionary check-in: 9c71e256ea user: olr tags: fx, trunk
2018-03-16
10:57
[fr] pt: miroir aux alouettes check-in: 39e62f4b81 user: olr tags: fr, trunk
Changes

Modified gc_lang/fr/webext/content_scripts/panel_gc.js from [8bd37de1f6] to [88de78d3e6].

   381    381       }
   382    382   
   383    383       hide () {
   384    384           this.xTooltipArrow.style.display = "none";
   385    385           this.xTooltip.style.display = "none";
   386    386       }
   387    387   
   388         -    _createSuggestion (sErrorId, iSugg, sSugg) {
          388  +    _createSuggestion (sErrorId, iSuggBlock, iSugg, sSugg) {
   389    389           let xNodeSugg = document.createElement("div");
   390         -        xNodeSugg.id = "grammalecte_sugg" + sErrorId + "--" + iSugg.toString();
          390  +        xNodeSugg.id = "grammalecte_sugg" + sErrorId + "-" + iSuggBlock.toString() + "-" + iSugg.toString();
   391    391           xNodeSugg.className = "grammalecte_tooltip_sugg";
   392    392           xNodeSugg.dataset.error_id = sErrorId;
   393    393           xNodeSugg.textContent = sSugg;
   394    394           return xNodeSugg;
   395    395       }
   396    396   
   397    397       setSpellSuggestionsFor (sWord, aSugg, iSuggBlock, sErrorId) {
................................................................................
   408    408                       }
   409    409                   } else {
   410    410                       if (iSuggBlock > 0) {
   411    411                           xSuggBlock.appendChild(oGrammalecte.createNode("div", {className: "grammalecte_tooltip_other_sugg_title", textContent: "AUTRES SUGGESTIONS :"}));
   412    412                       }
   413    413                       let iSugg = 0;
   414    414                       for (let sSugg of aSugg) {
   415         -                        xSuggBlock.appendChild(this._createSuggestion(sErrorId, iSugg, sSugg));
          415  +                        xSuggBlock.appendChild(this._createSuggestion(sErrorId, iSuggBlock, iSugg, sSugg));
   416    416                           xSuggBlock.appendChild(document.createTextNode(" "));
   417    417                           iSugg += 1;
   418    418                       }
   419    419                   }
   420    420               }
   421    421           }
   422    422           catch (e) {