Grammalecte  Check-in [5fc11add34]

Overview
Comment:[fx] WebExt: don’t create menu button if textarea is not visible
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256: 5fc11add34e33c8bb25f2e0d832228f4f3f1a9ab5f325eea0f2e35dabc9362f9
User & Date: olr on 2017-09-27 12:05:23
Other Links: manifest | tags
Context
2017-09-27
12:26
[fx] WebExt: no infinite animation: stop after 10 iterations check-in: 53c3063ab1 user: olr tags: trunk, fx
12:05
[fx] WebExt: don’t create menu button if textarea is not visible check-in: 5fc11add34 user: olr tags: trunk, fx
11:45
[fx] WebExt: secure function createNode() check-in: 57f14062ba user: olr tags: trunk, fx
Changes

Modified gc_lang/fr/webext/content_scripts/init.js from [46a029346c] to [6ea24993c1].

46
47
48
49
50
51
52

53
54

55
56
57
58
59
60
61
    oTFPanel: null,
    oLxgPanel: null,
    oGCPanel: null,

    createMenus: function () {
        let lNode = document.getElementsByTagName("textarea");
        for (let xNode of lNode) {

            this.lMenu.push(new GrammalecteMenu(this.nMenu, xNode));
            this.nMenu += 1;

        }
    },

    rescanPage: function () {
        if (this.oTFPanel !== null) { this.oTFPanel.hide(); }
        if (this.oLxgPanel !== null) { this.oLxgPanel.hide(); }
        if (this.oGCPanel !== null) { this.oGCPanel.hide(); }







>
|
|
>







46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
    oTFPanel: null,
    oLxgPanel: null,
    oGCPanel: null,

    createMenus: function () {
        let lNode = document.getElementsByTagName("textarea");
        for (let xNode of lNode) {
            if (xNode.style.display !== "none" && xNode.style.visibility !== "hidden") {
                this.lMenu.push(new GrammalecteMenu(this.nMenu, xNode));
                this.nMenu += 1;
            }
        }
    },

    rescanPage: function () {
        if (this.oTFPanel !== null) { this.oTFPanel.hide(); }
        if (this.oLxgPanel !== null) { this.oLxgPanel.hide(); }
        if (this.oGCPanel !== null) { this.oGCPanel.hide(); }