Overview
Comment: | [tb] timeout: progress bar to 0 after 2 s |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | tb | multid |
Files: | files | file ages | folders |
SHA3-256: |
5eb79332a312a4aa0e2e75c96c3577ea |
User & Date: | olr on 2018-03-20 09:21:05 |
Other Links: | branch diff | manifest | tags |
Context
2018-03-20
| ||
11:13 | [tb] load personal dictionary at startup check-in: 0ab0682f55 user: olr tags: tb, multid | |
09:21 | [tb] timeout: progress bar to 0 after 2 s check-in: 5eb79332a3 user: olr tags: tb, multid | |
2018-03-19
| ||
19:38 | [tb] lexicon editor: conj initialization (again) check-in: 71052608f4 user: olr tags: tb, multid | |
Changes
Modified gc_lang/fr/tb/content/lex_editor.js from [53f5f430d2] to [7abca98323].
︙ | ︙ | |||
93 94 95 96 97 98 99 100 101 102 103 104 105 106 | this.xProgressBar.max = lFlex.length; this.xProgressBar.value = 1; for (let lData of lFlex) { this._addRow(lData); this.xProgressBar.value += 1; } this.xProgressBar.value = this.xProgressBar.max; } this.lEntry = lFlex; this.nEntry = lFlex.length; this.showEntryNumber(); } addEntries (lFlex) { | > | 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | this.xProgressBar.max = lFlex.length; this.xProgressBar.value = 1; for (let lData of lFlex) { this._addRow(lData); this.xProgressBar.value += 1; } this.xProgressBar.value = this.xProgressBar.max; window.setTimeout(() => { this.xProgressBar.value = 0; }, 2000); } this.lEntry = lFlex; this.nEntry = lFlex.length; this.showEntryNumber(); } addEntries (lFlex) { |
︙ | ︙ | |||
455 456 457 458 459 460 461 | let oJSON = oDAWG.createBinaryJSON(1); oFileHandler.saveFile("fr.personal.json", JSON.stringify(oJSON)); this.oIBDAWG = new IBDAWG(oJSON); this.setDictData(this.oIBDAWG.nEntry, this.oIBDAWG.sDate); //browser.runtime.sendMessage({ sCommand: "setDictionary", dParam: {sType: "personal", oDict: oJSON}, dInfo: {} }); enableElement("export_button"); } else { | < | 456 457 458 459 460 461 462 463 464 465 466 467 468 469 | let oJSON = oDAWG.createBinaryJSON(1); oFileHandler.saveFile("fr.personal.json", JSON.stringify(oJSON)); this.oIBDAWG = new IBDAWG(oJSON); this.setDictData(this.oIBDAWG.nEntry, this.oIBDAWG.sDate); //browser.runtime.sendMessage({ sCommand: "setDictionary", dParam: {sType: "personal", oDict: oJSON}, dInfo: {} }); enableElement("export_button"); } else { oFileHandler.deleteFile("fr.personal.json"); this.setDictData(0, "[néant]"); disableElement("export_button"); } }, import: function () { |
︙ | ︙ |