composer update
This commit is contained in:
parent
f6abc3dce2
commit
71dfaca858
1753 changed files with 45274 additions and 14619 deletions
33
web/modules/contrib/webform/js/webform.announce.js
Normal file
33
web/modules/contrib/webform/js/webform.announce.js
Normal file
|
@ -0,0 +1,33 @@
|
|||
/**
|
||||
* @file
|
||||
* JavaScript behaviors for announcing changes.
|
||||
*/
|
||||
|
||||
(function ($, Drupal) {
|
||||
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Provide Webform announce attribute behavior.
|
||||
*
|
||||
* Announces changes using [data-webform-announce] attribute.
|
||||
*
|
||||
* The announce attributes allows FAPI Ajax callbacks to easily
|
||||
* trigger announcements.
|
||||
*
|
||||
* @see \Drupal\webform\Element\WebformComputedBase::ajaxWebformComputedCallback
|
||||
*
|
||||
* @type {Drupal~behavior}
|
||||
*
|
||||
* @prop {Drupal~behaviorAttach} attach
|
||||
* Attaches the behavior to [data-webform-announce] attribute.
|
||||
*/
|
||||
Drupal.behaviors.webformAnnounce = {
|
||||
attach: function (context) {
|
||||
$('[data-webform-announce]', context).once('data-webform-announce').each(function () {
|
||||
Drupal.announce($(this).data('webform-announce'));
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
})(jQuery, Drupal);
|
Reference in a new issue