Overview
Comment: | [fx] option to use personal dictionary |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | fx | multid |
Files: | files | file ages | folders |
SHA3-256: |
f9ac8823439bab58cf18efef725c278c |
User & Date: | olr on 2018-03-31 13:51:58 |
Other Links: | branch diff | manifest | tags |
Context
2018-04-01
| ||
07:28 | [fx][bug] fix dictionary loading check-in: b7557774b6 user: olr tags: fx, multid | |
2018-03-31
| ||
13:51 | [fx] option to use personal dictionary check-in: f9ac882343 user: olr tags: fx, multid | |
13:16 | [fx] main panel: information + sc options check-in: 3571664e26 user: olr tags: fx, multid | |
Changes
Modified gc_lang/fr/webext/background.js from [716a2f0752] to [4add4e7f3a].
︙ | |||
101 102 103 104 105 106 107 108 | 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 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 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | - + - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | }); } catch (e) { console.log("initGrammarChecker failed"); showError(e); } } |
︙ | |||
169 170 171 172 173 174 175 176 177 178 179 180 181 182 | 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 | + | case "getDefaultOptions": case "setOptions": case "setOption": case "resetOptions": case "textToTest": case "fullTests": case "setDictionary": case "setDictionaryOnOff": xGCEWorker.postMessage(oRequest); break; case "openURL": browser.tabs.create({url: dParam.sURL}); break; default: console.log("[background] Unknown command: " + sCommand); |
︙ |
Modified gc_lang/fr/webext/gce_worker.js from [cef372f281] to [b34bfbcbc3].
︙ | |||
118 119 120 121 122 123 124 | 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | - + + + + | case "textToTest": textToTest(dParam.sText, dParam.sCountry, dParam.bDebug, dParam.bContext, dInfo); break; case "fullTests": fullTests(dInfo); break; case "setDictionary": |
︙ | |||
302 303 304 305 306 307 308 | 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 | - + - + - - - + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + | gc_engine.setOptions(dMemoOptions); postMessage(createResponse("fullTests", sMsg, dInfo, true)); } // SpellChecker |
︙ |
Modified gc_lang/fr/webext/panel/main.js from [200b11bbbc] to [d7a3e529e8].
︙ | |||
50 51 52 53 54 55 56 57 58 59 60 61 62 63 | 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | + + + + + + + + + + | if (xElem.dataset.option) { browser.runtime.sendMessage({ sCommand: "setOption", dParam: {sOptName: xElem.dataset.option, bValue: xElem.checked}, dInfo: {} }); } } else if (xElem.id.endsWith("_dic")) { if (xElem.dataset.dictionary) { storeSCOptions(); browser.runtime.sendMessage({ sCommand: "setDictionaryOnOff", dParam: {sDictionary: xElem.dataset.dictionary, bActivate: xElem.checked}, dInfo: {} }); } } else if (xElem.id.startsWith("ui_option_")) { storeUIOptions(); } else if (xElem.id.startsWith("link_")) { browser.tabs.create({url: xElem.dataset.url}); } |
︙ | |||
130 131 132 133 134 135 136 137 138 139 140 141 142 143 | 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | + + + | document.getElementById(sPageName).style.display = "block"; if (sPageName == "gc_options_page") { displayGCOptionsLoadedFromStorage(); } else if (sPageName == "ui_options_page") { displayUIOptionsLoadedFromStorage(); } else if (sPageName == "sc_options_page") { displaySCOptionsLoadedFromStorage(); } } catch (e) { showError(e); } } |
︙ | |||
171 172 173 174 175 176 177 | 184 185 186 187 188 189 190 191 192 193 194 195 196 197 | - | xConjTab.then(onCreated, onError); } /* UI options */ |
︙ | |||
196 197 198 199 200 201 202 | 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 | - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | document.getElementById("ui_option_"+sOpt).checked = dOptions[sOpt]; } } } function storeUIOptions () { browser.storage.local.set({"ui_options": { |
︙ |