Grammalecte  Check-in [7636860335]

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

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 2019-08-10 12:04:43
Context
2019-08-10
12:35
[fr] fix regex check-in: ea1eaff896 user: olr tags: fr, trunk
12:04
[fx] endTimer when worker restarted check-in: 7636860335 user: olr tags: fx, trunk
12:04
[fr] test check-in: 86842cf539 user: olr tags: fr, trunk
Changes

Changes to gc_lang/fr/webext/content_scripts/init.js.

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":

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

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";