Grammalecte  Check-in [7636860335]

Overview
Comment:[fx] endTimer when worker restarted
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256: 76368603358bb13a63def4d18175ee00ac7d1305c68dfb44d480f233c3af2433
User & Date: olr on 2019-08-10 12:04:43
Other Links: manifest | tags
Context
2019-08-10
12:35
[fr] fix regex check-in: ea1eaff896 user: olr tags: trunk, fr
12:04
[fx] endTimer when worker restarted check-in: 7636860335 user: olr tags: trunk, fx
12:04
[fr] test check-in: 86842cf539 user: olr tags: trunk, fr
Changes

Modified gc_lang/fr/webext/content_scripts/init.js from [ac4bcaf91a] to [18d34f4268].

329
330
331
332
333
334
335

336
337
338
339
340
341
342
            } else {
                oGrammalecte.oGCPanel.displayConj(result.oConjTable);
            }
            break;
        case "workerRestarted":
            oGrammalecte.oGCPanel.stopWaitIcon();
            oGrammalecte.oGCPanel.showMessage("Le serveur grammatical a été arrêté et relancé.");

            break;
        /*
            Commands received from the context menu
            (Context menu are initialized in background)
        */
        // Grammar checker commands
        case "grammar_checker_editable":







>







329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
            } else {
                oGrammalecte.oGCPanel.displayConj(result.oConjTable);
            }
            break;
        case "workerRestarted":
            oGrammalecte.oGCPanel.stopWaitIcon();
            oGrammalecte.oGCPanel.showMessage("Le serveur grammatical a été arrêté et relancé.");
            oGrammalecte.oGCPanel.endTimer();
            break;
        /*
            Commands received from the context menu
            (Context menu are initialized in background)
        */
        // Grammar checker commands
        case "grammar_checker_editable":

Modified gc_lang/fr/webext/content_scripts/panel.js from [dcdee26109] to [b5c79a2ce5].

253
254
255
256
257
258
259
260


261
262
263
264
265
266
267

    showMessage (sMessage, sActionMessage="", sActionName="") {
        this.xPanelMessageBlock.style.display = "block";
        this.xPanelMessage.textContent = sMessage;
        if (sActionMessage) {
            this.xPanelMessageActionButton.textContent = sActionMessage;
            this.xPanelMessageActionButton.style.display = "block";
            this.xPanelMessageActionButton.onclick = () => { this.executeButtonAction(sActionName); };


        } else {
            this.xPanelMessageActionButton.style.display = "none";
        }
    }

    hideMessage () {
        this.xPanelMessageBlock.style.display = "none";







|
>
>







253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269

    showMessage (sMessage, sActionMessage="", sActionName="") {
        this.xPanelMessageBlock.style.display = "block";
        this.xPanelMessage.textContent = sMessage;
        if (sActionMessage) {
            this.xPanelMessageActionButton.textContent = sActionMessage;
            this.xPanelMessageActionButton.style.display = "block";
            this.xPanelMessageActionButton.onclick = () => {
                this.executeButtonAction(sActionName);
            };
        } else {
            this.xPanelMessageActionButton.style.display = "none";
        }
    }

    hideMessage () {
        this.xPanelMessageBlock.style.display = "none";