Grammalecte  Check-in [43be289176]

Overview
Comment:[fx] text formatter: close even when no change
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256: 43be28917654421bd865739b2f079f7ead8978712ea69a6b4a8bd287d0519f82
User & Date: olr on 2019-05-04 16:47:17
Other Links: manifest | tags
Context
2019-05-04
18:11
[fx] main panel: update doc check-in: 053f1c7d22 user: olr tags: trunk, fx
16:47
[fx] text formatter: close even when no change check-in: 43be289176 user: olr tags: trunk, fx
16:31
[fx] fix text formatter and adjustments, +code cleaning check-in: 0a02475e6f user: olr tags: trunk, fx
Changes

Modified gc_lang/fr/webext/content_scripts/panel_tf.js from [74a60a6517] to [6925f1b189].

22
23
24
25
26
27
28
29
30
31

32

33
34
35
36
37
38
39
22
23
24
25
26
27
28

29

30
31
32
33
34
35
36
37
38
39







-

-
+

+







        this.formatText = this.TextFormatter.formatTextRuleCount;
        this.removeHyphenAtEndOfParagraphs = this.TextFormatter.removeHyphenAtEndOfParagraphsCount;
        this.mergeContiguousParagraphs = this.TextFormatter.mergeContiguousParagraphsCount;
        this.getParagraph = this.TextFormatter.getParagraph;

        this.xCloseButton.onclick = () => {
            if (this.bTextChanged) {
                // recheck text after modification
                this.xGCPanel.recheckAll();
                this.hide();
                this.bTextChanged = false;
            }
            this.hide();
        };
    }

    _createTextFormatter () {
        let xTFNode = document.createElement("div");
        try {
            // Options