Overview
| Comment: | [tb] gc options: ui update |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | tb | tbme |
| Files: | files | file ages | folders |
| SHA3-256: |
780895ad1361927dc9776aa56673fe4f |
| User & Date: | olr on 2019-09-05 06:57:16 |
| Other Links: | branch diff | manifest | tags |
Context
|
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 | |
| 06:56 | [tb] gc options: ui update check-in: 66ee6776cc user: olr tags: tb, tbme | |
Changes
Modified gc_lang/fr/mailext/content/gc_options.js from [5410aeaf66] to [050fb882b6].
| ︙ | ︙ | |||
17 18 19 20 21 22 23 |
this.save();
});
document.addEventListener("dialogextra1", (event) => {
this.reset();
});
},
_setDialogOptions: function (bDefaultOptions=false) {
| < < < | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
this.save();
});
document.addEventListener("dialogextra1", (event) => {
this.reset();
});
},
_setDialogOptions: function (bDefaultOptions=false) {
try {
sOptions = bDefaultOptions ? prefs.getCharPref("sGCDefaultOptions") : prefs.getCharPref("sGCOptions");
this.oOptions = JSON.parse(sOptions);
for (let sParam in this.oOptions) {
if (document.getElementById("option_"+sParam) !== null) {
document.getElementById("option_"+sParam).checked = this.oOptions[sParam];
}
}
}
catch (e) {
console.error(e);
}
},
save: function () {
try {
for (let xNode of document.getElementsByClassName("option")) {
this.oOptions[xNode.id.slice(7)] = xNode.checked;
}
prefs.setCharPref("sGCOptions", JSON.stringify(this.oOptions));
}
catch (e) {
console.error(e);
}
},
reset: function () {
this._setDialogOptions(true);
}
}
oOptControl.load();
|