Grammalecte  Check-in [e8e3249304]

Overview
Comment:[fx] new default name for personal dictionary to export
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fx | multid
Files: files | file ages | folders
SHA3-256: e8e324930428f6cd5eacf41e163cb4fd2aa0f4d49cf3fa465dc2c8b902679036
User & Date: olr on 2018-02-16 15:54:04
Other Links: branch diff | manifest | tags
Context
2018-02-16
16:54
[lo] context menu: fix dictionary loading check-in: 6426ba35ee user: olr tags: lo, multid
15:54
[fx] new default name for personal dictionary to export check-in: e8e3249304 user: olr tags: fx, multid
15:40
[grphspell][js] ibdawg: use ... instead of concat check-in: 254e33fe66 user: olr tags: graphspell, multid
Changes

Modified gc_lang/fr/webext/panel/lex_editor.js from [2142dc301a] to [7139f8d80b].

615
616
617
618
619
620
621
622
623
624
625
626
    import: function () {
        // TO DO
    },

    export: function () {
        let xBlob = new Blob([ JSON.stringify(this.oIBDAWG.getJSON()) ], {type: 'application/json'}); 
        let sURL = URL.createObjectURL(xBlob);
        browser.downloads.download({ filename: "grammalecte_dictionnaire_personnel.json", url: sURL, saveAs: true });
    }
}

oBinaryDict.load();







|




615
616
617
618
619
620
621
622
623
624
625
626
    import: function () {
        // TO DO
    },

    export: function () {
        let xBlob = new Blob([ JSON.stringify(this.oIBDAWG.getJSON()) ], {type: 'application/json'}); 
        let sURL = URL.createObjectURL(xBlob);
        browser.downloads.download({ filename: "fr.personal.json", url: sURL, saveAs: true });
    }
}

oBinaryDict.load();