diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-02-11 17:00:35 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-02-11 17:00:35 +0100 |
| commit | 8c29df10e02e6777840ffd7a318472de29f77dd1 (patch) | |
| tree | 49c08eeab2620aa7e91e87256754763400c93376 /addons/auth_signup/static/src/js | |
| parent | 0e71f91fa1ea8df0111d034069dcb92e27c5f0a3 (diff) | |
| parent | 93d736e905e0d3b110c36ee93af341021eba42c4 (diff) | |
[MERGE] forward port branch saas-12.1 up to 93d736e905e
Diffstat (limited to 'addons/auth_signup/static/src/js')
| -rw-r--r-- | addons/auth_signup/static/src/js/signup.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/addons/auth_signup/static/src/js/signup.js b/addons/auth_signup/static/src/js/signup.js index 739ad5e283f..567b2d612f1 100644 --- a/addons/auth_signup/static/src/js/signup.js +++ b/addons/auth_signup/static/src/js/signup.js @@ -5,9 +5,11 @@ require('web.dom_ready'); // Disable 'Sign Up' button to prevent user form continuous clicking if ($('.oe_signup_form').length > 0) { - $('.oe_signup_form').on('submit', function () { - $('.o_signup_btn').attr('disabled', 'disabled'); - $('.o_signup_btn').prepend('<i class="fa fa-refresh fa-spin"/> '); + $('.oe_signup_form').on('submit', function (ev) { + var $form = $(ev.currentTarget); + var $btn = $form.find('.oe_login_buttons > button[type="submit"]'); + $btn.attr('disabled', 'disabled'); + $btn.prepend('<i class="fa fa-refresh fa-spin"/> '); }); } |
