From 6e0d73390c94dd2c22443c9f1b32e28c9c343e6d Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 29 Apr 2013 02:30:17 +0000 Subject: [PATCH] pass value to validate callback, fixes #1490 --- static/js/pandora/autovalidate.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/autovalidate.js b/static/js/pandora/autovalidate.js index d8bcb9bac..b95b5029b 100644 --- a/static/js/pandora/autovalidate.js +++ b/static/js/pandora/autovalidate.js @@ -70,7 +70,8 @@ pandora.validateNewPassword = function(value, callback) { callback({ message: '', // message: 'Missing password', - valid: value.length > 0 + valid: value.length > 0, + value: value }); }; @@ -78,7 +79,8 @@ pandora.validatePassword = function(value, callback) { callback({ message: '', // message: 'Missing password', - valid: value.length > 0 + valid: value.length > 0, + value: value }); };