From 2695bf598cfbe860b202ebc96a4243af391d4582 Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 10 Dec 2012 19:23:47 +0100 Subject: make sure client side validations also run after tabs were switched --- users/app/assets/javascripts/users.js.coffee | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'users/app/assets') 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() + ) + -- cgit v1.2.3