Overview
Comment: | [fx] WebExt: clear registered node when closing panel |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | fx | webext3 |
Files: | files | file ages | folders |
SHA3-256: |
e23d926562b4553b2f0e7c3fb4c94241 |
User & Date: | olr on 2017-10-13 13:27:26 |
Other Links: | branch diff | manifest | tags |
Context
2017-10-13
| ||
13:30 | [core][js] remove debug function check-in: 9300a9349a user: olr tags: core, webext3 | |
13:27 | [fx] WebExt: clear registered node when closing panel check-in: e23d926562 user: olr tags: fx, webext3 | |
13:14 | [fx] WebExt: check if right-clicked element have been registered (they aren’t in iframe!) check-in: b7c9949be0 user: olr tags: fx, webext3 | |
Changes
Modified gc_lang/fr/webext/content_scripts/init.js from [d603139c87] to [d9498e4b46].
︙ | ︙ | |||
50 51 52 53 54 55 56 57 58 59 60 61 62 63 | xRightClickedNode: null, listenRightClick: function () { document.addEventListener('contextmenu', function (xEvent) { this.xRightClickedNode = xEvent.target; }.bind(this), true); }, 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; | > > > > | 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | xRightClickedNode: null, listenRightClick: function () { document.addEventListener('contextmenu', function (xEvent) { this.xRightClickedNode = xEvent.target; }.bind(this), true); }, clearRightClickedNode: function () { this.xRightClickedNode = 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; |
︙ | ︙ |
Modified gc_lang/fr/webext/content_scripts/panel.js from [18e69bae0d] to [9619f1038a].
︙ | ︙ | |||
88 89 90 91 92 93 94 95 96 97 98 99 100 101 | show () { this.xPanel.style.display = "block"; } hide () { this.xPanel.style.display = "none"; } center () { let nHeight = (this.bFlexible) ? window.innerHeight-100 : this.nHeight; this.xPanel.style = `top: 50%; left: 50%; width: ${this.nWidth}px; height: ${nHeight}px; margin-top: -${nHeight/2}px; margin-left: -${this.nWidth/2}px;`; } | > | 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | show () { this.xPanel.style.display = "block"; } hide () { this.xPanel.style.display = "none"; oGrammalecte.clearRightClickedNode(); } center () { let nHeight = (this.bFlexible) ? window.innerHeight-100 : this.nHeight; this.xPanel.style = `top: 50%; left: 50%; width: ${this.nWidth}px; height: ${nHeight}px; margin-top: -${nHeight/2}px; margin-left: -${this.nWidth/2}px;`; } |
︙ | ︙ |