Move all files to 2017/
This commit is contained in:
parent
ac7370f67f
commit
2875863330
15717 changed files with 0 additions and 0 deletions
29
2017/web/core/modules/language/language.admin.js
Normal file
29
2017/web/core/modules/language/language.admin.js
Normal file
|
@ -0,0 +1,29 @@
|
|||
/**
|
||||
* DO NOT EDIT THIS FILE.
|
||||
* See the following change record for more information,
|
||||
* https://www.drupal.org/node/2815083
|
||||
* @preserve
|
||||
**/
|
||||
|
||||
(function ($, Drupal) {
|
||||
Drupal.behaviors.negotiationLanguage = {
|
||||
attach: function attach() {
|
||||
var $configForm = $('#language-negotiation-configure-form');
|
||||
var inputSelector = 'input[name$="[configurable]"]';
|
||||
|
||||
function toggleTable(checkbox) {
|
||||
var $checkbox = $(checkbox);
|
||||
|
||||
$checkbox.closest('.table-language-group').find('table, .tabledrag-toggle-weight').toggle($checkbox.prop('checked'));
|
||||
}
|
||||
|
||||
$configForm.once('negotiation-language-admin-bind').on('change', inputSelector, function (event) {
|
||||
toggleTable(event.target);
|
||||
});
|
||||
|
||||
$configForm.find(inputSelector + ':not(:checked)').each(function (index, element) {
|
||||
toggleTable(element);
|
||||
});
|
||||
}
|
||||
};
|
||||
})(jQuery, Drupal);
|
Reference in a new issue