Grammalecte  Check-in [3f2d8766bf]

Overview
Comment:[fx][bug] fix display of grammar suggestions
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256: 3f2d8766bf9a47ce59b9fa1bbe790867792445b58a91978af12d31c1ca2c0383
User & Date: olr on 2018-03-26 21:26:55
Other Links: manifest | tags
Context
2018-03-26
21:44
[build] helpers: fileFile to *.py files check-in: 5782076e99 user: olr tags: trunk, build
21:26
[fx][bug] fix display of grammar suggestions check-in: 3f2d8766bf user: olr tags: trunk, fx
21:11
[fx][bug] CSS protection for the gc panel: div > img check-in: c83027f7a4 user: olr tags: trunk, fx
Changes

Modified gc_lang/fr/webext/content_scripts/panel_gc.js from [88de78d3e6] to [6bf4fd5886].

335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
                    document.getElementById("grammalecte_tooltip_url").style.display = "none";
                }
                document.getElementById("grammalecte_tooltip_ignore").dataset.error_id = xNodeErr.dataset.error_id;
                let iSugg = 0;
                this.clearSuggestionBlock();
                if (xNodeErr.dataset.suggestions.length > 0) {
                    for (let sSugg of xNodeErr.dataset.suggestions.split("|")) {
                        this.xTooltipSuggBlock.appendChild(this._createSuggestion(xNodeErr.dataset.error_id, iSugg, sSugg));
                        this.xTooltipSuggBlock.appendChild(document.createTextNode(" "));
                        iSugg += 1;
                    }
                } else {
                    this.xTooltipSuggBlock.textContent = "Aucune.";
                }
            }







|







335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
                    document.getElementById("grammalecte_tooltip_url").style.display = "none";
                }
                document.getElementById("grammalecte_tooltip_ignore").dataset.error_id = xNodeErr.dataset.error_id;
                let iSugg = 0;
                this.clearSuggestionBlock();
                if (xNodeErr.dataset.suggestions.length > 0) {
                    for (let sSugg of xNodeErr.dataset.suggestions.split("|")) {
                        this.xTooltipSuggBlock.appendChild(this._createSuggestion(xNodeErr.dataset.error_id, 0, iSugg, sSugg));
                        this.xTooltipSuggBlock.appendChild(document.createTextNode(" "));
                        iSugg += 1;
                    }
                } else {
                    this.xTooltipSuggBlock.textContent = "Aucune.";
                }
            }