Overview
| Comment: | [tb] ui options update |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | tb | tbme |
| Files: | files | file ages | folders |
| SHA3-256: |
e2d390fd56cf0d6664b38df543fbf097 |
| User & Date: | olr on 2019-09-05 09:54:05 |
| Other Links: | branch diff | manifest | tags |
Context
|
2019-09-06
| ||
| 09:50 | merge trunk check-in: 21c81683f4 user: olr tags: tbme | |
|
2019-09-05
| ||
| 09:54 | [tb] ui options update check-in: e2d390fd56 user: olr tags: tb, tbme | |
| 06:57 | [tb] gc options: ui update check-in: 780895ad13 user: olr tags: tb, tbme | |
Changes
Modified gc_lang/fr/mailext/content/options.js from [7635023546] to [9da0d898f3].
| ︙ | ︙ | |||
13 14 15 16 17 18 19 |
load: function () {
try {
document.getElementById('check_signature').checked = prefs.getBoolPref('bCheckSignature');
}
catch (e) {
console.error(e);
| < > > > > > > > < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
load: function () {
try {
document.getElementById('check_signature').checked = prefs.getBoolPref('bCheckSignature');
}
catch (e) {
console.error(e);
}
this.listen();
},
listen: function () {
document.addEventListener("dialogaccept", (event) => {
this.save();
});
},
save: function () {
try {
prefs.setBoolPref('bCheckSignature', document.getElementById('check_signature').checked);
}
catch (e) {
console.error(e);
}
}
}
oOptControl.load();
|
Modified gc_lang/fr/mailext/content/options.xul from [94d508f940] to [3943bf3117].
1 2 3 4 5 6 7 8 9 10 11 | <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <?xml-stylesheet href="chrome://grammarchecker/content/options.css" type="text/css"?> <!DOCTYPE dialog SYSTEM "chrome://grammarchecker/locale/options.dtd"> <dialog id="grammalecte-options-window" title="&window.title;" orient="vertical" buttons="accept, cancel" | < < | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://grammarchecker/content/options.css" type="text/css"?>
<!DOCTYPE dialog SYSTEM "chrome://grammarchecker/locale/options.dtd">
<dialog
id="grammalecte-options-window"
title="&window.title;"
orient="vertical"
buttons="accept, cancel"
defaultButton="accept"
width="400"
onload="document.getElementById('grammalecte-options-window').centerWindowOnScreen();"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- Other elements go here -->
|
| ︙ | ︙ |
Modified gc_lang/fr/mailext/content/spell_options.js from [401f404b0c] to [2d7adbf6a9].
1 2 3 4 5 6 7 8 9 10 11 12 |
// JavaScript
"use strict";
const Cc = Components.classes;
const Ci = Components.interfaces;
// const Cu = Components.utils;
const prefs = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService).getBranch("extensions.grammarchecker.");
var oDialogControl = {
| | | | | | | | < < < < | | | < | | > > > > > | | | < < < < | < < < < < < < < < < < | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
// JavaScript
"use strict";
const Cc = Components.classes;
const Ci = Components.interfaces;
// const Cu = Components.utils;
const prefs = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService).getBranch("extensions.grammarchecker.");
var oDialogControl = {
load: function () {
try {
// center window
document.getElementById('grammalecte-spelloptions-window').centerWindowOnScreen();
// Graphspell dictionaries
document.getElementById('personal_dic').checked = prefs.getBoolPref('bPersonalDictionary');
this.listen();
}
catch (e) {
console.error(e);
}
},
listen: function () {
document.addEventListener("dialogaccept", (event) => {
oDialogControl.setDictionaries();
});
},
setDictionaries: function () {
oSpellControl.init();
this._setGraphspellDictionaries();
},
_setGraphspellDictionaries: function () {
let bActivate = document.getElementById('personal_dic').checked;
prefs.setBoolPref("bPersonalDictionary", bActivate);
}
};
|
Modified gc_lang/fr/mailext/content/spell_options.xul from [7544df81f8] to [218f35c9f4].
1 2 3 4 5 6 7 8 9 10 11 | <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <?xml-stylesheet href="chrome://grammarchecker/content/spell_options.css" type="text/css"?> <!DOCTYPE dialog SYSTEM "chrome://grammarchecker/locale/spell_options.dtd"> <dialog id="grammalecte-spelloptions-window" title="&window.title;" orient="vertical" buttons="accept,cancel" | < < | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <?xml-stylesheet href="chrome://grammarchecker/content/spell_options.css" type="text/css"?> <!DOCTYPE dialog SYSTEM "chrome://grammarchecker/locale/spell_options.dtd"> <dialog id="grammalecte-spelloptions-window" title="&window.title;" orient="vertical" buttons="accept,cancel" width="400" height="300" onload="oDialogControl.load();" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <!-- Other elements go here --> <div class="dialogheader-title">&dialogheader.label;</div> |
| ︙ | ︙ |