From 124de36cb68a1d0deea1550f6474337fd1e16c22 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 5 Jun 2012 15:13:00 +0200 Subject: [PATCH] fix rest password form --- static/js/pandora/account.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/account.js b/static/js/pandora/account.js index 3fbf9e164..db76a4a6d 100644 --- a/static/js/pandora/account.js +++ b/static/js/pandora/account.js @@ -160,7 +160,7 @@ pandora.ui.accountForm = function(action, value) { } }); } else if (action == 'reset') { - var usernameOrEmail = data.usernameOrEmail, + var usernameOrEmail = data.values.usernameOrEmail, key = usernameOrEmail[0]; data = {}; data[key] = usernameOrEmail[1]; @@ -294,7 +294,10 @@ pandora.ui.accountForm = function(action, value) { ], separators: [ {title: '', width: 0} - ] + ], + validate: function(value, callback) { + callback(!Ox.isEmpty(value[1])); + } }); } }