73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
+
+
+
+
+
+
+
|
}
else if (xElem.id == "conj_button") {
browser.runtime.sendMessage({
sCommand: "openConjugueurTab",
dParam: {},
dInfo: {}
});
}
else if (xElem.id == "dictionaries_button") {
browser.runtime.sendMessage({
sCommand: "openDictionaries",
dParam: { "dictionary": "__community__"},
dInfo: {}
});
}
else if (xElem.id == "dic_community_button") {
browser.runtime.sendMessage({
sCommand: "openLexiconEditor",
dParam: { "dictionary": "__community__"},
dInfo: {}
});
|
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
|
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
|
-
-
+
+
|
function displaySCOptions (dOptions) {
if (!dOptions.hasOwnProperty("sc_options")) {
console.log("no sc options found");
return;
}
dOptions = dOptions.sc_options;
//document.getElementById("extended_dic").checked = dOptions.extended_dic;
document.getElementById("community_dic").checked = dOptions.community_dic;
//document.getElementById("extended_dic").checked = dOptions.extended;
document.getElementById("community_dic").checked = dOptions.community;
document.getElementById("personal_dic").checked = dOptions.personal;
}
function storeSCOptions () {
browser.storage.local.set({"sc_options": {
extended: false,
community: document.getElementById("community_dic").checked,
|