Grammalecte  Check-in [4cc1a6db6e]

Overview
Comment:[tb] useless console.log()
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | tb | tbme
Files: files | file ages | folders
SHA3-256: 4cc1a6db6e293ca3668594a9612fb756bc430928880db4b4ff48e0750ecfe03a
User & Date: olr on 2019-09-04 19:51:52
Other Links: branch diff | manifest | tags
Context
2019-09-05
06:00
[tb] code cleaning check-in: 6a95ec929e user: olr tags: tb, tbme
2019-09-04
19:51
[tb] useless console.log() check-in: 4cc1a6db6e user: olr tags: tb, tbme
19:44
[tb] ui update check-in: 3b7d4a1c2e user: olr tags: tb, tbme
Changes

Modified gc_lang/fr/mailext/content/conjugueur.js from [7b655e7cc2] to [de46feffb0].

32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
            });
            document.getElementById('otco').addEventListener("click", (xEvent) => {
                this._displayResults();
            });
        }
        catch (e) {
            console.error(e);
            // Cu.reportError(e);
        }
        this.conjugate("être");
    },

    oVerb: null,

    getVerbAndConjugate: function () {







<







32
33
34
35
36
37
38

39
40
41
42
43
44
45
            });
            document.getElementById('otco').addEventListener("click", (xEvent) => {
                this._displayResults();
            });
        }
        catch (e) {
            console.error(e);

        }
        this.conjugate("être");
    },

    oVerb: null,

    getVerbAndConjugate: function () {
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
                    document.getElementById('verb_title').textContent = sVerb;
                    document.getElementById('verb').style = "color: #999999;";
                    document.getElementById('verb').value = "";
                    this.oVerb = new Verb(sVerb);
                    document.getElementById('info').textContent = this.oVerb.sInfo;
                    document.getElementById('opro').label = this.oVerb.sProLabel;
                    if (this.oVerb.bUncomplete) {
                        console.log("uncomplete");
                        document.getElementById('opro').checked = false;
                        document.getElementById('opro').disabled = true;
                        document.getElementById('opro').style = "color: #CCC;";
                        document.getElementById('otco').checked = false;
                        document.getElementById('otco').disabled = true;
                        document.getElementById('otco').style = "color: #CCC;";
                        document.getElementById('smallnote').hidden = false;
                    } else {
                        console.log("complete");
                        document.getElementById('otco').disabled = false;
                        document.getElementById('otco').style = "color: #000;";
                        console.log("pron:", this.oVerb.nPronominable);
                        if (this.oVerb.nPronominable == 0) {
                            document.getElementById('opro').checked = false;
                            document.getElementById('opro').disabled = false;
                            document.getElementById('opro').style = "color: #000;";
                        } else if (this.oVerb.nPronominable == 1) {
                            document.getElementById('opro').checked = true;
                            document.getElementById('opro').disabled = true;







<








<


<







80
81
82
83
84
85
86

87
88
89
90
91
92
93
94

95
96

97
98
99
100
101
102
103
                    document.getElementById('verb_title').textContent = sVerb;
                    document.getElementById('verb').style = "color: #999999;";
                    document.getElementById('verb').value = "";
                    this.oVerb = new Verb(sVerb);
                    document.getElementById('info').textContent = this.oVerb.sInfo;
                    document.getElementById('opro').label = this.oVerb.sProLabel;
                    if (this.oVerb.bUncomplete) {

                        document.getElementById('opro').checked = false;
                        document.getElementById('opro').disabled = true;
                        document.getElementById('opro').style = "color: #CCC;";
                        document.getElementById('otco').checked = false;
                        document.getElementById('otco').disabled = true;
                        document.getElementById('otco').style = "color: #CCC;";
                        document.getElementById('smallnote').hidden = false;
                    } else {

                        document.getElementById('otco').disabled = false;
                        document.getElementById('otco').style = "color: #000;";

                        if (this.oVerb.nPronominable == 0) {
                            document.getElementById('opro').checked = false;
                            document.getElementById('opro').disabled = false;
                            document.getElementById('opro').style = "color: #000;";
                        } else if (this.oVerb.nPronominable == 1) {
                            document.getElementById('opro').checked = true;
                            document.getElementById('opro').disabled = true;
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
                    }
                    this._displayResults();
                }
            }
        }
        catch (e) {
            console.error(e);
            // Cu.reportError(e);
        }
    },

    _displayResults: function () {
        if (this.oVerb === null) {
            return;
        }







<







111
112
113
114
115
116
117

118
119
120
121
122
123
124
                    }
                    this._displayResults();
                }
            }
        }
        catch (e) {
            console.error(e);

        }
    },

    _displayResults: function () {
        if (this.oVerb === null) {
            return;
        }
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
            document.getElementById('simp3').textContent = oConjTable["simp3"] || " ";
            document.getElementById('simp4').textContent = oConjTable["simp4"] || " ";
            document.getElementById('simp5').textContent = oConjTable["simp5"] || " ";
            document.getElementById('simp6').textContent = oConjTable["simp6"] || " ";
        }
        catch (e) {
            console.error(e);
            // Cu.reportError(e);
        }
    }

};

conj.init(helpers.loadFile("resource://grammalecte/fr/conj_data.json"));
oConj.init();







<


<




206
207
208
209
210
211
212

213
214

215
216
217
218
            document.getElementById('simp3').textContent = oConjTable["simp3"] || " ";
            document.getElementById('simp4').textContent = oConjTable["simp4"] || " ";
            document.getElementById('simp5').textContent = oConjTable["simp5"] || " ";
            document.getElementById('simp6').textContent = oConjTable["simp6"] || " ";
        }
        catch (e) {
            console.error(e);

        }
    }

};

conj.init(helpers.loadFile("resource://grammalecte/fr/conj_data.json"));
oConj.init();