ajax.es6.js 427 B

1234567891011121314151617
  1. /**
  2. * @file
  3. * Provides backwards compatibility layer for Ajax-related markup.
  4. */
  5. (Drupal => {
  6. /**
  7. * Override the default ajaxProgressBar for backwards compatibility.
  8. *
  9. * @param {jQuery} $element
  10. * Progress bar element.
  11. * @return {string}
  12. * The HTML markup for the progress bar.
  13. */
  14. Drupal.theme.ajaxProgressBar = $element =>
  15. $element.addClass('ajax-progress ajax-progress-bar');
  16. })(Drupal);