summaryrefslogtreecommitdiff
path: root/modules/user/js/password_strength.js
diff options
context:
space:
mode:
authorshadlaws <shad@shadlaws.com>2013-03-12 10:33:33 +0100
committershadlaws <shad@shadlaws.com>2013-03-12 10:33:33 +0100
commit86a21cc88127ea44d47e708c7093aa236317609d (patch)
tree116a6e8f72fecb822530981044454e843dc758a2 /modules/user/js/password_strength.js
parentcb8a63bb483742e86af9afd4e931b36638131317 (diff)
#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.
Diffstat (limited to 'modules/user/js/password_strength.js')
-rw-r--r--modules/user/js/password_strength.js2
1 files changed, 1 insertions, 1 deletions
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")