diff --git a/core/modules/user/user.js b/core/modules/user/user.js index 10a0b1c..8e0e135 100644 --- a/core/modules/user/user.js +++ b/core/modules/user/user.js @@ -18,13 +18,13 @@ Drupal.behaviors.password = { innerWrapper.addClass('password-parent'); // Add the password confirmation layer. - outerWrapper.find('input.password-confirm').parent().prepend('
' + translate['confirmTitle'] + '
').addClass('confirm-parent'); + outerWrapper.find('input.password-confirm').parent().prepend('
' + translate.confirmTitle + '
').addClass('confirm-parent'); var confirmInput = outerWrapper.find('input.password-confirm'); var confirmResult = outerWrapper.find('div.password-confirm'); var confirmChild = confirmResult.find('span'); // Add the description box. - var passwordMeter = '
' + translate['strengthTitle'] + '
'; + var passwordMeter = '
' + translate.strengthTitle + '
'; confirmInput.parent().after('
'); innerWrapper.prepend(passwordMeter); var passwordDescription = outerWrapper.find('div.password-suggestions').hide(); @@ -159,7 +159,6 @@ Drupal.evaluatePasswordStrength = function (password, translate) { strength = 5; } - var indicatorText; // Based on the strength, work out what text should be shown by the password strength meter. if (strength < 60) { indicatorText = translate.weak; diff --git a/core/modules/user/user.permissions.js b/core/modules/user/user.permissions.js index 2707512..15658a9 100644 --- a/core/modules/user/user.permissions.js +++ b/core/modules/user/user.permissions.js @@ -15,11 +15,14 @@ Drupal.behaviors.permissions = { // performed without triggering internal layout and re-rendering processes // in the browser. var $table = $(this); + var $ancestor, method; if ($table.prev().length) { - var $ancestor = $table.prev(), method = 'after'; + $ancestor = $table.prev(); + method = 'after'; } else { - var $ancestor = $table.parent(), method = 'append'; + $ancestor = $table.parent(); + method = 'append'; } $table.detach();