
| Current Path : /var/www/html/strat/web/modules/contrib/webform/js/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/strat/web/modules/contrib/webform/js/webform.element.ajax.js |
/**
* @file
* JavaScript behaviors for webforms.
*/
(function ($, Drupal, once) {
'use strict';
/**
* Attach behaviors to trigger submit button from input onchange.
*
* @type {Drupal~behavior}
*
* @prop {Drupal~behaviorAttach} attach
* Attaches form trigger submit events.
*/
Drupal.behaviors.webformSubmitTrigger = {
attach: function (context) {
$(once('webform-trigger-submit', '[data-webform-trigger-submit]')).on('change', function () {
var submit = $(this).attr('data-webform-trigger-submit');
$(submit).trigger('mousedown');
});
}
};
})(jQuery, Drupal, once);