Grammalecte  Check-in [939c24d512]

Overview
Comment:[fx] fix copyTextToClipboard bug introduce with shadow
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 939c24d5120d7eadf13866d94cc1fd5f95d5c32647e9d8cf5ea9c25fcb8bf833
User & Date: IllusionPerdu on 2018-11-12 12:03:14
Other Links: manifest | tags
Context
2018-11-12
16:01
[fr] nr: avoir l’air +adj check-in: 8ae882c236 user: olr tags: trunk, fr
12:03
[fx] fix copyTextToClipboard bug introduce with shadow check-in: 939c24d512 user: IllusionPerdu tags: trunk
2018-11-10
17:21
[fr] màj: accord part. pas. avec verbes d’état à l’interrogatif check-in: 10f8336f59 user: olr tags: trunk, fr
Changes

Modified gc_lang/fr/webext/content_scripts/panel_gc.js from [46a6cc1ac7] to [04fddfc5c0].

268
269
270
271
272
273
274


275

276
277
278
279
280
281
282
268
269
270
271
272
273
274
275
276

277
278
279
280
281
282
283
284







+
+
-
+








    copyTextToClipboard () {
        this.startWaitIcon();
        try {
            let xClipboardButton = this.xParent.getElementById("grammalecte_clipboard_button");
            xClipboardButton.textContent = "->>";
            let sText = "";
            // Quand c'est dans un shadow "this.xParent.getElementsByClassName" n'existe pas.
            let xElem = this.xParent.getElementById("grammalecte_gc_panel");
            for (let xNode of this.xParent.getElementsByClassName("grammalecte_paragraph")) {
            for (let xNode of xElem.getElementsByClassName("grammalecte_paragraph")) {
                sText += xNode.textContent + "\n";
            }
            this._copyToClipboard(sText);
            xClipboardButton.textContent = "OK";
            window.setTimeout(function() { xClipboardButton.textContent = "∑"; } , 2000);
        }
        catch (e) {