Grammalecte  Check-in [708091ec61]

Overview
Comment:[fx] lexicon editor: fix loading
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256: 708091ec61bacb589ac13db2846d60c07ede2b376b8bec68af9cf9d1b9ea6147
User & Date: olr on 2018-02-10 13:19:17
Other Links: manifest | tags
Context
2018-02-10
13:35
[fx] lexicon editor: show date check-in: c453c3dbb7 user: olr tags: trunk, fx
13:19
[fx] lexicon editor: fix loading check-in: 708091ec61 user: olr tags: trunk, fx
07:53
[fx] update: lexicon editor check-in: 778321169e user: olr tags: trunk, fx
Changes

Modified gc_lang/fr/webext/panel/lex_editor.js from [636758bca9] to [0b5353d96f].

587
588
589
590
591
592
593
594

595
596
597
598
599




600

601
602
603
604
605
606
607
587
588
589
590
591
592
593

594
595
596
597
598
599
600
601
602
603

604
605
606
607
608
609
610
611







-
+





+
+
+
+
-
+







            return;
        }
        let xPromise = browser.storage.local.get("oDictionary");
        xPromise.then(this._load.bind(this), showError);
    },

    _load: function (oResult) {
        if (oResult.hasOwnProperty("oDictionary")) {
        if (!oResult.hasOwnProperty("oDictionary")) {
            oWidgets.hideElement("export_button");
            return;
        }
        this.oJSON = oResult.oDictionary;
        this.oIBDAWG = new IBDAWG(this.oJSON);
        let lEntry = [];
        for (let s of this.oIBDAWG.select()) {
            lEntry.push(s.split("\t"));
        }        
        oLexicon.set([oIBDAWG.select()]);
        oLexicon.set(lEntry);
        oWidgets.showElement("export_button");
    },

    build: function (lEntry) {
        oWidgets.showElement("build_progress");
        let xProgressNode = document.getElementById("build_progress");
        let oDAWG = new DAWG(lEntry, "Français - dictionnaire personnel", "S", xProgressNode);