« MediaWiki:Gadget-CreerNouveauMot.js » : différence entre les versions
Contenu supprimé Contenu ajouté
conversion vers ES6 |
getElementGroup() doesn't fetch the FieldLayout; seems we'll need to create a reference to the FieldLayout object |
||
(3 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 193 :
this._linkFld = new OO.ui.TextInputWidget();
this._disableTranslationChk = new OO.ui.CheckboxInputWidget();
this._transcriptionFieldLayout = new OO.ui.FieldLayout(this._transcriptionFld, {
});
OO.ui.FieldsetLayout.call(this, {
Ligne 1 202 ⟶ 1 211 :
help: getPageLink("Aide:Exemples"),
}),
this._transcriptionFieldLayout,
▲ label: createLinks(SPECIAL_CHARS, this._translationFld, null, "Traduction en français"),
▲ align: "inline",
▲ }),
▲ new OO.ui.FieldLayout(this._transcriptionFld, {
▲ label: createLinks(SPECIAL_CHARS, this._transcriptionFld, null, "Transcription latine"),
▲ align: "inline",
▲ }),
new OO.ui.FieldLayout(this._sourceFld, {
label: createLinks(SPECIAL_CHARS, this._sourceFld, null, "Source"),
Ligne 1 237 ⟶ 1 240 :
*/
ExampleForm.prototype.onLanguageUpdate = function (langCode) {
this._translationFieldLayout.toggle(langCode !== "fr");
this._transcriptionFieldLayout.toggle(langCode !== "fr");
this._disableTranslationChk.setDisabled(langCode === "fr");
};
|