- Patch #521904 by mgifford: added ARIA live region to password strength and match containers.

merge-requests/26/head
Dries Buytaert 2010-02-03 09:04:18 +00:00
parent 759277c8a3
commit 59c9219fb7
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ Drupal.behaviors.password = {
innerWrapper.addClass('password-parent');
// Add the description box.
var passwordMeter = '<div id="password-strength"><div id="password-strength-text"></div><div class="password-strength-title">' + translate.strengthTitle + '</div><div id="password-indicator"><div id="indicator"></div></div></div>';
var passwordMeter = '<div id="password-strength"><div id="password-strength-text" aria-live="polite"></div><div class="password-strength-title">' + translate.strengthTitle + '</div><div id="password-indicator"><div id="indicator"></div></div></div>';
$('div.description', outerWrapper).prepend('<div class="password-suggestions"></div>');
$(innerWrapper).prepend(passwordMeter);