Overview
Comment: | [fx] WebExt: use “this” |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | fx | webext3 |
Files: | files | file ages | folders |
SHA3-256: |
114adc8ee968a9c6a843d6e87e6960a0 |
User & Date: | olr on 2017-10-16 20:40:25 |
Other Links: | branch diff | manifest | tags |
Context
2017-10-17
| ||
14:56 | [fx] WebExt: ui options for buttons/menus inserted into pages check-in: 38e8cfe68d user: olr tags: fx, webext3 | |
2017-10-16
| ||
20:40 | [fx] WebExt: use “this” check-in: 114adc8ee9 user: olr tags: fx, webext3 | |
20:03 | [fx] WebExt: message box small improvements check-in: a44781f918 user: olr tags: fx, webext3 | |
Changes
Modified gc_lang/fr/webext/content_scripts/init.js from [fd1fa3a31b] to [bcc9b2fa7e].
︙ | ︙ | |||
122 123 124 125 126 127 128 | if (this.oMessageBox === null) { this.oMessageBox = new GrammalecteMessageBox("grammalecte_message_box", "Grammalecte", 400, 250); this.oMessageBox.insertIntoPage(); } }, startGCPanel: function (xNode=null) { | | | | | | | | | | | | | | | | | 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | if (this.oMessageBox === null) { this.oMessageBox = new GrammalecteMessageBox("grammalecte_message_box", "Grammalecte", 400, 250); this.oMessageBox.insertIntoPage(); } }, startGCPanel: function (xNode=null) { this.createGCPanel(); this.oGCPanel.clear(); this.oGCPanel.show(); this.oGCPanel.start(xNode); this.oGCPanel.startWaitIcon(); }, startLxgPanel: function () { this.createLxgPanel(); this.oLxgPanel.clear(); this.oLxgPanel.show(); this.oLxgPanel.startWaitIcon(); }, startFTPanel: function (xNode=null) { this.createTFPanel(); this.oTFPanel.start(xNode); this.oTFPanel.show(); }, showMessage: function (sMessage) { this.createMessageBox(); this.oMessageBox.show(); this.oMessageBox.addMessage(sMessage); }, getPageText: function () { let sPageText = document.body.innerText; let nPos = sPageText.indexOf("__grammalecte_panel__"); if (nPos >= 0) { sPageText = sPageText.slice(0, nPos); |
︙ | ︙ |