Grammalecte  Check-in [9acf544aa6]

Overview
Comment:[tb] remove useless console.log()
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | tb | tbnext
Files: files | file ages | folders
SHA3-256: 9acf544aa61a2512e7011867013a98b86761ff320862a9283582969ba64e75f5
User & Date: olr on 2018-03-14 20:52:25
Other Links: branch diff | manifest | tags
Context
2018-03-21
09:10
[build][fr] path for Thunderbird Daily check-in: 7a4f69d41b user: olr tags: fr, build, tbnext
2018-03-14
20:52
[tb] remove useless console.log() check-in: 9acf544aa6 user: olr tags: tb, tbnext
19:50
[tb] spellchecker: tabulations to spaces check-in: ce4a3cc724 user: olr tags: tb, tbnext
Changes

Modified gc_lang/fr/tb/content/options.js from [239a6bffa5] to [73166a402f].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// JavaScript

"use strict";


console.log("1");

const Cc = Components.classes;
const Ci = Components.interfaces;
const Cu = Components.utils;
const prefs = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService).getBranch("extensions.grammarchecker.");


var oOptControl = {

    load: function () {
    	console.log("load");
        try {
            document.getElementById('check_signature').checked = prefs.getBoolPref('bCheckSignature');
        }
        catch (e) {
            Cu.reportError(e);
        }
    },

    save: function () {
    	console.log("save");
        try {
            prefs.setBoolPref('bCheckSignature', document.getElementById('check_signature').checked);
        }
        catch (e) {
            Cu.reportError(e);
        }
    }
}

console.log("2");
oOptControl.load();
console.log("3");





<
<









<









<









|

<
1
2
3
4
5


6
7
8
9
10
11
12
13
14

15
16
17
18
19
20
21
22
23

24
25
26
27
28
29
30
31
32
33
34

// JavaScript

"use strict";




const Cc = Components.classes;
const Ci = Components.interfaces;
const Cu = Components.utils;
const prefs = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService).getBranch("extensions.grammarchecker.");


var oOptControl = {

    load: function () {

        try {
            document.getElementById('check_signature').checked = prefs.getBoolPref('bCheckSignature');
        }
        catch (e) {
            Cu.reportError(e);
        }
    },

    save: function () {

        try {
            prefs.setBoolPref('bCheckSignature', document.getElementById('check_signature').checked);
        }
        catch (e) {
            Cu.reportError(e);
        }
    }
}


oOptControl.load();