Grammalecte  Check-in [1990296330]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:[fx] set community dictionary as soon as it is created
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fx | comdic
Files: files | file ages | folders
SHA3-256:1990296330745f02cfdc54502e5f3e87f0cd2288a7908d1a53a679e4ade1f710
User & Date: olr 2019-02-05 12:55:26
Context
2019-02-05
17:03
[fx] lexicon editor: save dictionary online (draft) check-in: 13b87972a8 user: olr tags: comdic, fx
12:55
[fx] set community dictionary as soon as it is created check-in: 1990296330 user: olr tags: comdic, fx
12:24
[fx] remember dictionaries selection check-in: 0ee518126e user: olr tags: comdic, fx
Changes

Changes to gc_lang/fr/webext/panel/dictionaries.js.

303
304
305
306
307
308
309

310
311
312
313
314
315
        for (let sName of this.dSelectedDictionaries.keys()) {
            lDict.push(this.dDict.get(sName));
        }
        let oDict = dic_merger.merge(lDict, "S", "fr", "Français", "fr.community", "Dictionnaire communautaire (personnalisé)", this.xProgressBar);
        console.log(oDict);
        browser.storage.local.set({ "community_dictionary": oDict });
        browser.storage.local.set({ "selected_dictionaries_list": Array.from(this.dSelectedDictionaries.keys()) });

    }
}

const oDicTable = new Table("dictionaries_table", ["Nom", "Entrées", "Description", "Date"], "wait_progress", "num_dic", false, true);

oDicTable.init();







>






303
304
305
306
307
308
309
310
311
312
313
314
315
316
        for (let sName of this.dSelectedDictionaries.keys()) {
            lDict.push(this.dDict.get(sName));
        }
        let oDict = dic_merger.merge(lDict, "S", "fr", "Français", "fr.community", "Dictionnaire communautaire (personnalisé)", this.xProgressBar);
        console.log(oDict);
        browser.storage.local.set({ "community_dictionary": oDict });
        browser.storage.local.set({ "selected_dictionaries_list": Array.from(this.dSelectedDictionaries.keys()) });
        browser.runtime.sendMessage({ sCommand: "setDictionary", dParam: {sDictionary: "community", oDict: oDict}, dInfo: {} });
    }
}

const oDicTable = new Table("dictionaries_table", ["Nom", "Entrées", "Description", "Date"], "wait_progress", "num_dic", false, true);

oDicTable.init();