diff options
author | Azul <azul@leap.se> | 2012-12-10 19:23:47 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-12-10 19:23:47 +0100 |
commit | 2695bf598cfbe860b202ebc96a4243af391d4582 (patch) | |
tree | 51afc51923ab6a339f22014f1e62c5d623009852 /users/app | |
parent | 28b21959f39b0e28c450bba54b8696632a0187fa (diff) |
make sure client side validations also run after tabs were switched
Diffstat (limited to 'users/app')
-rw-r--r-- | users/app/assets/javascripts/users.js.coffee | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/users/app/assets/javascripts/users.js.coffee b/users/app/assets/javascripts/users.js.coffee index 0595292..0c1fb55 100644 --- a/users/app/assets/javascripts/users.js.coffee +++ b/users/app/assets/javascripts/users.js.coffee @@ -32,3 +32,7 @@ $(document).ready -> $('.user.form.change_password').submit srp.update $('.user.form.change_password').submit preventDefault $('.user.typeahead').typeahead({source: pollUsers}); + $('a[data-toggle="tab"]').on('shown', -> + $(ClientSideValidations.selectors.forms).validate() + ) + |