Grammalecte  Check-in [dbc7721c60]

Overview
Comment:[fx] fix button popping up
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256: dbc7721c60717df1d82e95f8cf5fdc5feb7ceab1a11f90dbd32920ab79700b78
User & Date: olr on 2020-04-02 16:29:53
Other Links: manifest | tags
Context
2020-04-02
19:09
[build] code clarification in make.py [fr] ajustements check-in: fa0b1a589f user: olr tags: trunk, fr, build
16:29
[fx] fix button popping up check-in: dbc7721c60 user: olr tags: trunk, fx
14:43
[fr] mauvaise fonction, + version 1.8.2 check-in: 5ebb4cd8bf user: olr tags: trunk, fr
Changes

Modified gc_lang/fr/webext/content_scripts/menu.js from [f9497c4f3d] to [562aee0f70].

33
34
35
36
37
38
39
40



41
42
43
44
45
46
47

48
49
50
51
52
53
54
        if (oOptions.hasOwnProperty("ui_options")) {
            this._bTextArea = oOptions.ui_options.textarea;
            this._bEditableNode = oOptions.ui_options.editablenode;
        }
    }

    examineNode (xNode) {
        if (xNode && xNode instanceof HTMLElement



                && ( (xNode.tagName == "TEXTAREA" && this._bTextArea && xNode.getAttribute("spellcheck") !== "false")
                    || (xNode.isContentEditable && this._bEditableNode)
                    || (xNode.tagName == "IFRAME" && this._bIframe) )
                && xNode.style.display !== "none" && xNode.style.visibility !== "hidden"
                && !(xNode.dataset.grammalecte_button  &&  xNode.dataset.grammalecte_button == "false")) {
            this.xTextNode = xNode;
            this.show()

        }
        else {
            this.xTextNode = null;
            this.hide();
        }
    }








|
>
>
>
|


|
|
|
|
>







33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
        if (oOptions.hasOwnProperty("ui_options")) {
            this._bTextArea = oOptions.ui_options.textarea;
            this._bEditableNode = oOptions.ui_options.editablenode;
        }
    }

    examineNode (xNode) {
        if (xNode && xNode instanceof HTMLElement) {
            if (xNode === this.xTextNode) {
                return;
            }
            if ( ( (xNode.tagName == "TEXTAREA" && this._bTextArea && xNode.getAttribute("spellcheck") !== "false")
                    || (xNode.isContentEditable && this._bEditableNode)
                    || (xNode.tagName == "IFRAME" && this._bIframe) )
                    && xNode.style.display !== "none" && xNode.style.visibility !== "hidden"
                    && !(xNode.dataset.grammalecte_button  &&  xNode.dataset.grammalecte_button == "false") ) {
                this.xTextNode = xNode;
                this.show()
            }
        }
        else {
            this.xTextNode = null;
            this.hide();
        }
    }