From 86a21cc88127ea44d47e708c7093aa236317609d Mon Sep 17 00:00:00 2001 From: shadlaws Date: Tue, 12 Mar 2013 10:33:33 +0100 Subject: #2055, 2056 - jQuery updates for .attr("value", [value]) and .keyup(handler). - changed .attr("value", [value]) to .val([value]) for new jQuery. - changed .keyup(handler) to .on("input keyup", handler) to fire on mouse-only cut'n'paste. --- modules/user/js/password_strength.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/user/js') diff --git a/modules/user/js/password_strength.js b/modules/user/js/password_strength.js index 5764e332..c5fccc68 100644 --- a/modules/user/js/password_strength.js +++ b/modules/user/js/password_strength.js @@ -11,7 +11,7 @@ _init: function() { var self = this; - $(this.element).keyup(function() { + $(this.element).on("input keyup", function() { var strength = self.calculateStrength(this.value); var index = Math.min(Math.floor(strength / 10), 10); $("#g-password-gauge") -- cgit v1.2.3