Now all modules are in core modules folder
This commit is contained in:
parent
5ba1cdfa0b
commit
05b6a91b0c
1907 changed files with 0 additions and 0 deletions
16
modules/i18n/i18ntaxonomy/i18ntaxonomy.js
Normal file
16
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