diff options
author | Azul <azul@leap.se> | 2012-11-26 10:59:50 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-11-26 10:59:50 +0100 |
commit | ce0999ead0d61db1f6534ee9d8114c4551542e80 (patch) | |
tree | 40600388d20ecda99a23ec89c15ee715450ff824 /users/app/assets | |
parent | 76a3b91ad78d12ef82a0c01ca702720a510f1e22 (diff) |
minor: client side validations fixed + .json request
Diffstat (limited to 'users/app/assets')
-rw-r--r-- | users/app/assets/javascripts/users.js.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/users/app/assets/javascripts/users.js.coffee b/users/app/assets/javascripts/users.js.coffee index 5663161..f0bb3dd 100644 --- a/users/app/assets/javascripts/users.js.coffee +++ b/users/app/assets/javascripts/users.js.coffee @@ -15,7 +15,7 @@ srp.updated = -> srp.error = (message) -> if $.isPlainObject(message) && message.errors for field, error of message.errors - element = $('form input[name="session['+field+']"]') + element = $('form input[name$="['+field+']"]') next unless element element.trigger('element:validate:fail.ClientSideValidations', error).data('valid', false) else |