Overview
| Comment: | [fx] small code cleaning |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk | fx |
| Files: | files | file ages | folders |
| SHA3-256: |
ce039a8de4cf807a611556d8f3740ea8 |
| User & Date: | olr on 2019-05-04 14:17:14 |
| Other Links: | manifest | tags |
Context
|
2019-05-04
| ||
| 16:31 | [fx] fix text formatter and adjustments, +code cleaning check-in: 0a02475e6f user: olr tags: trunk, fx | |
| 14:17 | [fx] small code cleaning check-in: ce039a8de4 user: olr tags: trunk, fx | |
| 13:17 | [fx] update ui check-in: c834b85865 user: olr tags: trunk, fx | |
Changes
Modified gc_lang/fr/webext/content_scripts/init.js from [d5cb24d97c] to [b64a4037b3].
| ︙ | ︙ | |||
60 61 62 63 64 65 66 |
sExtensionUrl: null,
oOptions: null,
listenRightClick: function () {
// Node where a right click is done
// Bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=1325814
| | | | 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
sExtensionUrl: null,
oOptions: null,
listenRightClick: function () {
// Node where a right click is done
// Bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=1325814
document.addEventListener('contextmenu', (xEvent) => {
this.xRightClickedNode = xEvent.target;
}, true);
},
clearRightClickedNode: function () {
this.xRightClickedNode = null;
},
createMenus: function () {
|
| ︙ | ︙ |
Modified gc_lang/fr/webext/content_scripts/panel.js from [004624125f] to [be9bbebdca].
| ︙ | ︙ | |||
69 70 71 72 73 74 75 |
xButtonLine.appendChild(this._createMoveButton("stickToBottom", "⏷", "Coller en bas"));
xButtonLine.appendChild(this._createCloseButton());
return xButtonLine;
}
_createWaitIcon () {
let xWaitIcon = oGrammalecte.createNode("div", {className: "grammalecte_spinner"});
| < < | | | | 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
xButtonLine.appendChild(this._createMoveButton("stickToBottom", "⏷", "Coller en bas"));
xButtonLine.appendChild(this._createCloseButton());
return xButtonLine;
}
_createWaitIcon () {
let xWaitIcon = oGrammalecte.createNode("div", {className: "grammalecte_spinner"});
return xWaitIcon;
}
_createCopyButton () {
let xButton = oGrammalecte.createNode("div", {id: "grammalecte_clipboard_button", className: "grammalecte_panel_button grammalecte_copy_button", textContent: "∑", title: "Copier dans le presse-papiers"});
xButton.onclick = () => { this.copyTextToClipboard(); };
return xButton;
}
_createMoveButton (sAction, sLabel, sTitle) {
let xButton = oGrammalecte.createNode("div", {className: "grammalecte_panel_button grammalecte_move_button", textContent: sLabel, title: sTitle});
xButton.onclick = () => { this[sAction](); };
return xButton;
}
_createCloseButton () {
let xButton = oGrammalecte.createNode("div", {className: "grammalecte_panel_button grammalecte_close_button", textContent: "×", title: "Fermer la fenêtre"});
xButton.onclick = () => { this.hide(); };
return xButton;
}
insertIntoPage () {
if (this.bShadow) {
oGrammalecte.createStyle("content_scripts/panel.css", null, this.xShadow);
oGrammalecte.createStyle("content_scripts/panel_gc.css", null, this.xShadow);
|
| ︙ | ︙ |