Differences From Artifact [d603139c87]:
- File gc_lang/fr/webext/content_scripts/init.js — part of check-in [b7c9949be0] at 2017-10-13 13:14:28 on branch webext3 — [fx] WebExt: check if right-clicked element have been registered (they aren’t in iframe!) (user: olr, size: 8424) [annotate] [blame] [check-ins using]
To Artifact [d9498e4b46]:
- File gc_lang/fr/webext/content_scripts/init.js — part of check-in [e23d926562] at 2017-10-13 13:27:26 on branch webext3 — [fx] WebExt: clear registered node when closing panel (user: olr, size: 8512) [annotate] [blame] [check-ins using]
| ︙ | |||
50 51 52 53 54 55 56 57 58 59 60 61 62 63 | 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;
|
| ︙ |