From bdf02865c749e9ed3fe3d926d5aaee4b481adb20 Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Tue, 21 May 2013 15:50:30 -0700 Subject: [PATCH] Issue #1684880 by droplet, nod_: JSHint user. --- core/modules/user/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/user/user.js b/core/modules/user/user.js index e35eeef979e..45181fbddab 100644 --- a/core/modules/user/user.js +++ b/core/modules/user/user.js @@ -53,7 +53,7 @@ Drupal.behaviors.password = { } // Only show the description box if a weakness exists in the password. - result.strength === 100 ? passwordDescription.hide() : passwordDescription.show(); + passwordDescription.toggle(result.strength !== 100); // Adjust the length of the strength indicator. innerWrapper.find('.indicator')