Overview
| Comment: | [fx] cancel code cosmetics |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | fx | comunicate |
| Files: | files | file ages | folders |
| SHA3-256: |
bcfa44ecc977389c341d0aa2d87af3fe |
| User & Date: | olr on 2020-03-10 08:43:16 |
| Other Links: | branch diff | manifest | tags |
Context
|
2020-03-10
| ||
| 08:56 | [fx] cancel code cosmetics Leaf check-in: ff2b908b67 user: olr tags: fx, comunicate | |
| 08:43 | [fx] cancel code cosmetics check-in: bcfa44ecc9 user: olr tags: fx, comunicate | |
| 08:41 | [fx] cancel code cosmetics check-in: 4cb15368e7 user: olr tags: fx, comunicate | |
Changes
Modified gc_lang/fr/webext/content_scripts/init.js from [5009f6ca62] to [ea813fb0f0].
| ︙ | ︙ | |||
272 273 274 275 276 277 278 279 280 281 282 283 284 285 |
return xNode;
}
catch (e) {
showError(e);
}
}
};
/*
Connexion to the background
*/
let xGrammalectePort = browser.runtime.connect({name: "content-script port"});
xGrammalectePort.onMessage.addListener(function (oMessage) {
| > | 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 |
return xNode;
}
catch (e) {
showError(e);
}
}
};
/*
Connexion to the background
*/
let xGrammalectePort = browser.runtime.connect({name: "content-script port"});
xGrammalectePort.onMessage.addListener(function (oMessage) {
|
| ︙ | ︙ | |||
317 318 319 320 321 322 323 |
Commands received from the context menu
(Context menu are initialized in background)
*/
// Grammar checker commands
case "rightClickGCEditableNode":
if (oGrammalecte.xRightClickedNode !== null) {
oGrammalecte.startGCPanel(oGrammalecte.xRightClickedNode);
| | | 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 |
Commands received from the context menu
(Context menu are initialized in background)
*/
// Grammar checker commands
case "rightClickGCEditableNode":
if (oGrammalecte.xRightClickedNode !== null) {
oGrammalecte.startGCPanel(oGrammalecte.xRightClickedNode);
sText = (oGrammalecte.xRightClickedNode.tagName == "TEXTAREA") ? oGrammalecte.xRightClickedNode.value : oGrammalecte.xRightClickedNode.innerText;
xGrammalectePort.postMessage({
sCommand: "parseAndSpellcheck",
dParam: {sText: sText, sCountry: "FR", bDebug: false, bContext: false},
dInfo: {sTextAreaId: oGrammalecte.xRightClickedNode.id}
});
} else {
oGrammalecte.showMessage("Erreur. Le node sur lequel vous avez cliqué n’a pas pu être identifié. Sélectionnez le texte à corriger et relancez le correcteur via le menu contextuel.");
|
| ︙ | ︙ | |||
343 344 345 346 347 348 349 |
oGrammalecte.startGCPanel();
// selected text is sent to the GC worker in the background script.
break;
// Lexicographer commands
case "rightClickLxgEditableNode":
if (oGrammalecte.xRightClickedNode !== null) {
oGrammalecte.startLxgPanel();
| | | 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 |
oGrammalecte.startGCPanel();
// selected text is sent to the GC worker in the background script.
break;
// Lexicographer commands
case "rightClickLxgEditableNode":
if (oGrammalecte.xRightClickedNode !== null) {
oGrammalecte.startLxgPanel();
sText = (oGrammalecte.xRightClickedNode.tagName == "TEXTAREA") ? oGrammalecte.xRightClickedNode.value : oGrammalecte.xRightClickedNode.innerText;
xGrammalectePort.postMessage({
sCommand: "getListOfTokens",
dParam: {sText: sText},
dInfo: {sTextAreaId: oGrammalecte.xRightClickedNode.id}
});
} else {
oGrammalecte.showMessage("Erreur. Le node sur lequel vous avez cliqué n’a pas pu être identifié. Sélectionnez le texte à analyser et relancez le lexicographe via le menu contextuel.");
|
| ︙ | ︙ |