drupal/core/themes/claro/js/ajax.js

18 lines
809 B
JavaScript
Raw Normal View History

/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
(Drupal => {
Drupal.theme.ajaxProgressIndicatorFullscreen = () => '<div class="ajax-progress ajax-progress--fullscreen"><div class="ajax-progress__throbber ajax-progress__throbber--fullscreen">&nbsp;</div></div>';
Drupal.theme.ajaxProgressThrobber = message => {
const messageMarkup = typeof message === 'string' ? Drupal.theme('ajaxProgressMessage', message) : '';
const throbber = '<div class="ajax-progress__throbber">&nbsp;</div>';
return `<div class="ajax-progress ajax-progress--throbber">${throbber}${messageMarkup}</div>`;
};
Drupal.theme.ajaxProgressMessage = message => `<div class="ajax-progress__message">${message}</div>`;
})(Drupal);