first commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @file
|
||||
* Provides backwards compatibility layer for Ajax-related markup.
|
||||
*/
|
||||
|
||||
(Drupal => {
|
||||
/**
|
||||
* Override the default ajaxProgressBar for backwards compatibility.
|
||||
*
|
||||
* @param {jQuery} $element
|
||||
* Progress bar element.
|
||||
* @return {string}
|
||||
* The HTML markup for the progress bar.
|
||||
*/
|
||||
Drupal.theme.ajaxProgressBar = $element =>
|
||||
$element.addClass('ajax-progress ajax-progress-bar');
|
||||
})(Drupal);
|
||||
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* DO NOT EDIT THIS FILE.
|
||||
* See the following change record for more information,
|
||||
* https://www.drupal.org/node/2815083
|
||||
* @preserve
|
||||
**/
|
||||
|
||||
(function (Drupal) {
|
||||
Drupal.theme.ajaxProgressBar = function ($element) {
|
||||
return $element.addClass('ajax-progress ajax-progress-bar');
|
||||
};
|
||||
})(Drupal);
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* @file
|
||||
* Stable theme overrides for user password forms.
|
||||
*/
|
||||
|
||||
(Drupal => {
|
||||
/**
|
||||
* Constucts a password confirm message element
|
||||
*
|
||||
* @return {string}
|
||||
* A string representing a DOM fragment.
|
||||
*/
|
||||
Drupal.theme.passwordConfirmMessage = translate =>
|
||||
`<div aria-live="polite" aria-atomic="true" class="password-confirm js-password-confirm js-password-confirm-message">${translate.confirmTitle} <span></span></div>`;
|
||||
})(Drupal);
|
||||
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* DO NOT EDIT THIS FILE.
|
||||
* See the following change record for more information,
|
||||
* https://www.drupal.org/node/2815083
|
||||
* @preserve
|
||||
**/
|
||||
|
||||
(function (Drupal) {
|
||||
Drupal.theme.passwordConfirmMessage = function (translate) {
|
||||
return "<div aria-live=\"polite\" aria-atomic=\"true\" class=\"password-confirm js-password-confirm js-password-confirm-message\">" + translate.confirmTitle + " <span></span></div>";
|
||||
};
|
||||
})(Drupal);
|
||||
Reference in New Issue
Block a user