Move all files to 2017/
This commit is contained in:
parent
ac7370f67f
commit
2875863330
15717 changed files with 0 additions and 0 deletions
|
@ -1,25 +0,0 @@
|
|||
/**
|
||||
* @file
|
||||
* JavaScript behaviors for radio buttons.
|
||||
*/
|
||||
|
||||
(function ($, Drupal) {
|
||||
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Adds HTML5 validation to required radios buttons.
|
||||
*
|
||||
* @type {Drupal~behavior}
|
||||
*
|
||||
* @see Issue #2856795: If radio buttons are required but not filled form is nevertheless submitted.
|
||||
*/
|
||||
Drupal.behaviors.webformRadiosRequired = {
|
||||
attach: function (context) {
|
||||
$('.js-webform-type-radios.required, .js-webform-type-webform-radios-other.required', context).each(function () {
|
||||
$(this).find('input[type="radio"]').attr({'required': 'required', 'aria-required': 'true'});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
})(jQuery, Drupal);
|
Reference in a new issue