
| Current Path : /var/www/html/rocksensor/web/core/modules/system/tests/modules/ajax_test/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/rocksensor/web/core/modules/system/tests/modules/ajax_test/js/global_events.js |
/**
* @file
* For testing that jQuery's ajaxSuccess, ajaxComplete, and ajaxStop events
* are triggered only after commands in a Drupal Ajax response are executed.
*/
(($, Drupal) => {
['ajaxSuccess', 'ajaxComplete', 'ajaxStop'].forEach((eventName) => {
$(document)[eventName](() => {
$('#test_global_events_log').append(eventName);
$('#test_global_events_log2').append(eventName);
});
});
})(jQuery, Drupal);