Grammalecte  Check-in [4e339bc42a]

Overview
Comment:[fx][bug] hide gc rule id for spelling mistakes
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256: 4e339bc42a868d1dfddd556e8a1100a3dd6c9bb69b84789dc1136d23dd3bd14b
User & Date: olr on 2017-10-23 12:28:34
Other Links: manifest | tags
Context
2017-10-23
14:05
[fx] CSS: protect spinner from modifications from pages check-in: 5fcea2e5bc user: olr tags: trunk, fx
12:28
[fx][bug] hide gc rule id for spelling mistakes check-in: 4e339bc42a user: olr tags: trunk, fx
12:27
[fx] CSS: prevent some modifications from webpage (use div instead of p) check-in: 18324789ff user: olr tags: trunk, fx
Changes

Modified gc_lang/fr/webext/content_scripts/panel_gc.js from [ea52c2797c] to [4f996feab2].

346
347
348
349
350
351
352

353
354
355
356
357
358
359
            }
            if (xNodeErr.dataset.error_type === "spelling") {
                // spelling mistake
                document.getElementById("grammalecte_tooltip_message").textContent = "Mot inconnu du dictionnaire.";
                document.getElementById("grammalecte_tooltip_ignore").dataset.error_id = xNodeErr.dataset.error_id;
                document.getElementById("grammalecte_tooltip_url").dataset.url = "";
                document.getElementById("grammalecte_tooltip_url").style.display = "none";

                this.clearSuggestionBlock();
                this.xTooltipSuggBlock.textContent = "Recherche de graphies possibles…";
                xGrammalectePort.postMessage({
                    sCommand: "getSpellSuggestions",
                    dParam: {sWord: xNodeErr.textContent},
                    dInfo: {sErrorId: xNodeErr.dataset.error_id}
                });







>







346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
            }
            if (xNodeErr.dataset.error_type === "spelling") {
                // spelling mistake
                document.getElementById("grammalecte_tooltip_message").textContent = "Mot inconnu du dictionnaire.";
                document.getElementById("grammalecte_tooltip_ignore").dataset.error_id = xNodeErr.dataset.error_id;
                document.getElementById("grammalecte_tooltip_url").dataset.url = "";
                document.getElementById("grammalecte_tooltip_url").style.display = "none";
                document.getElementById("grammalecte_tooltip_rule_id").style.display = "none";
                this.clearSuggestionBlock();
                this.xTooltipSuggBlock.textContent = "Recherche de graphies possibles…";
                xGrammalectePort.postMessage({
                    sCommand: "getSpellSuggestions",
                    dParam: {sWord: xNodeErr.textContent},
                    dInfo: {sErrorId: xNodeErr.dataset.error_id}
                });