New module 'Internationalization'
This commit is contained in:
parent
e997e7a20c
commit
003589f73e
47 changed files with 8417 additions and 0 deletions
16
sites/all/modules/i18n/i18ntaxonomy/i18ntaxonomy.js
Normal file
16
sites/all/modules/i18n/i18ntaxonomy/i18ntaxonomy.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
Drupal.behaviors.i18ntaxonomy = function (context) {
|
||||
if (Drupal.settings && Drupal.settings.i18ntaxonomy_vocabulary_form) {
|
||||
$('form#taxonomy-form-vocabulary input.form-radio', context).filter('[name=i18nmode]').click(function () {
|
||||
var languageSelect = $('form#taxonomy-form-vocabulary select#edit-language', context);
|
||||
if ($(this).val() == Drupal.settings.i18ntaxonomy_vocabulary_form.I18N_TAXONOMY_LANGUAGE) {
|
||||
// Make sure language form is enabled when I18N_TAXONOMY_LANGUAGE is clicked
|
||||
languageSelect.removeAttr("disabled");
|
||||
}
|
||||
else {
|
||||
// Make sure language form is disabled otherwise and set to blank.
|
||||
languageSelect.val("");
|
||||
languageSelect.attr("disabled", "disabled");
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
Reference in a new issue