Grammalecte  Check-in [98fd978031]

Overview
Comment:[fx] ui: don’t show button if spellcheck=false on textareas
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256: 98fd9780313ca736c1f050c04583536b57c795deef8ea187994a92f53c668743
User & Date: olr on 2018-05-30 18:11:24
Other Links: manifest | tags
Context
2018-06-01
10:53
[fr] phonet_simil: caméra/camera check-in: 533f283991 user: olr tags: trunk, fr
2018-05-30
18:11
[fx] ui: don’t show button if spellcheck=false on textareas check-in: 98fd978031 user: olr tags: trunk, fx
2018-05-21
13:15
[fr] faux positif: quelles ont été… check-in: b146ef925d user: olr tags: trunk, fr
Changes

Modified gc_lang/fr/webext/content_scripts/init.js from [86174a3577] to [4dca1795eb].

75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
    },

    _createMenus: function (dOptions) {
        if (dOptions.hasOwnProperty("ui_options")) {
            dOptions = dOptions.ui_options;
            if (dOptions.textarea) {
                for (let xNode of document.getElementsByTagName("textarea")) {
                    if (xNode.style.display !== "none" && xNode.style.visibility !== "hidden") {
                        this.lMenu.push(new GrammalecteMenu(this.nMenu, xNode));
                        this.nMenu += 1;
                    }
                }
            }
            if (dOptions.editablenode) {
                for (let xNode of document.querySelectorAll("[contenteditable]")) {







|







75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
    },

    _createMenus: function (dOptions) {
        if (dOptions.hasOwnProperty("ui_options")) {
            dOptions = dOptions.ui_options;
            if (dOptions.textarea) {
                for (let xNode of document.getElementsByTagName("textarea")) {
                    if (xNode.style.display !== "none" && xNode.style.visibility !== "hidden" && xNode.getAttribute("spellcheck") !== "false") {
                        this.lMenu.push(new GrammalecteMenu(this.nMenu, xNode));
                        this.nMenu += 1;
                    }
                }
            }
            if (dOptions.editablenode) {
                for (let xNode of document.querySelectorAll("[contenteditable]")) {