Overview
Comment: | [fx] exclude empty paragraph with no errors |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | fx | webext2 |
Files: | files | file ages | folders |
SHA3-256: |
2cc6384593c282bb6a07693ed5ccada9 |
User & Date: | olr on 2017-08-23 11:41:26 |
Other Links: | branch diff | manifest | tags |
Context
2017-08-23
| ||
12:22 | [fx] panels size adjustments check-in: 905fe07ad2 user: olr tags: fx, webext2 | |
11:41 | [fx] exclude empty paragraph with no errors check-in: 2cc6384593 user: olr tags: fx, webext2 | |
09:15 | [fx] unlock textarea after gc check-in: 5a3323c9df user: olr tags: fx, webext2 | |
Changes
Modified gc_lang/fr/webext/content_scripts/gc_content.js from [72e96a573e] to [75316c6151].
︙ | ︙ | |||
73 74 75 76 77 78 79 | hide () { this.xPanelNode.style.display = "none"; this.oTAC.clear(); } addParagraphResult (oResult) { try { | | | 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | hide () { this.xPanelNode.style.display = "none"; this.oTAC.clear(); } addParagraphResult (oResult) { try { if (oResult && oResult.sParagraph.trim() !== "" && (oResult.aGrammErr.length > 0 || oResult.aSpellErr.length > 0)) { let xNodeDiv = createNode("div", {className: "grammalecte_paragraph_block"}); // actions let xActionsBar = createNode("div", {className: "grammalecte_paragraph_actions"}); xActionsBar.appendChild(createNode("div", {id: "grammalecte_check" + oResult.iParaNum, className: "button green", textContent: "Réanalyser"})); xActionsBar.appendChild(createNode("div", {id: "grammalecte_hide" + oResult.iParaNum, className: "button red bold", textContent: "×"})); // paragraph let xParagraph = createNode("p", {id: "grammalecte_paragraph"+oResult.iParaNum, lang: "fr", contentEditable: "true"}, {para_num: oResult.iParaNum}); |
︙ | ︙ |