Overview
Comment: | [fx] button will disappear only when closing manually the menu |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | fx | FixWebext |
Files: | files | file ages | folders |
SHA3-256: |
46027d61ee12d7a3c905e49a61e9c576 |
User & Date: | olr on 2017-10-28 07:56:26 |
Original Comment: | [fx] button will disappear only when closing manuelly the menu |
Other Links: | branch diff | manifest | tags |
Context
2017-10-28
| ||
08:02 | [build] remove building process for Addon-SDK (obsolete) check-in: a59d5cef90 user: olr tags: build, FixWebext | |
07:56 | [fx] button will disappear only when closing manually the menu check-in: 46027d61ee user: olr tags: fx, FixWebext | |
07:54 | [fx] CSS: line-height doesn’t look OK on Firefox check-in: e20095be97 user: olr tags: fx, FixWebext | |
Changes
Modified gc_lang/fr/webext/content_scripts/menu.js from [6f7cefd29a] to [687c841278].
︙ | ︙ | |||
31 32 33 34 35 36 37 | xNewNode.style.marginTop = nMarginTop + "px"; } _createListeners () { this.xNode.addEventListener('focus', (e) => { this.xButton.style.display = "block"; }); | | | | > > > | 31 32 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 59 60 61 | xNewNode.style.marginTop = nMarginTop + "px"; } _createListeners () { this.xNode.addEventListener('focus', (e) => { this.xButton.style.display = "block"; }); /*this.xNode.addEventListener('blur', (e) => { window.setTimeout(() => {this.xButton.style.display = "none";}, 300); });*/ } _getText () { return (this.xNode.tagName == "TEXTAREA") ? this.xNode.value : this.xNode.innerText; } _createMenu () { try { let xMenu = oGrammalecte.createNode("div", {id: this.sMenuId, className: "grammalecte_menu"}); let xCloseButton = oGrammalecte.createNode("div", {className: "grammalecte_menu_close_button", textContent: "×"} ); xCloseButton.onclick = () => { this.xButton.style.display = "none"; this.switchMenu(); } xMenu.appendChild(xCloseButton); xMenu.appendChild(oGrammalecte.createNode("div", {className: "grammalecte_menu_header", textContent: "GRAMMALECTE"})); // Text formatter if (this.xNode.tagName == "TEXTAREA") { let xTFButton = oGrammalecte.createNode("div", {className: "grammalecte_menu_item", textContent: "Formateur de texte"}); xTFButton.onclick = () => { this.switchMenu(); |
︙ | ︙ |