diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-03-01 17:26:43 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-03-01 17:26:43 +0100 |
| commit | b04c8eae6bf8a0da4df734ac8db36cb04aec9802 (patch) | |
| tree | 5f75f4c32e6f2a770cb0de62271d521880dfacca /addons/website_form/static/src/js | |
| parent | 9a1d71ce95fd3c0476aee358b37e29fd7cd8edc7 (diff) | |
| parent | 153ae5e8b834345673a1fa23e0724e4c67a66df2 (diff) | |
[MERGE] forward port branch saas-14 up to 153ae5e8b83
Diffstat (limited to 'addons/website_form/static/src/js')
| -rw-r--r-- | addons/website_form/static/src/js/website_form.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/website_form/static/src/js/website_form.js b/addons/website_form/static/src/js/website_form.js index 431250907c3..716c49ed685 100644 --- a/addons/website_form/static/src/js/website_form.js +++ b/addons/website_form/static/src/js/website_form.js @@ -56,7 +56,7 @@ odoo.define('website_form.animation', function (require) { send: function(e) { e.preventDefault(); // Prevent the default submit behavior - this.$target.find('.o_website_form_send').off(); // Prevent users from crazy clicking + this.$target.find('.o_website_form_send').off().addClass('disabled'); // Prevent users from crazy clicking var self = this; @@ -225,7 +225,7 @@ odoo.define('website_form.animation', function (require) { update_status: function(status) { var self = this; if (status != 'success') { // Restore send button behavior if result is an error - this.$target.find('.o_website_form_send').on('click',function(e) {self.send(e);}); + this.$target.find('.o_website_form_send').on('click',function(e) {self.send(e);}).removeClass('disabled'); } var $result = this.$('#o_website_form_result'); this.templates_loaded.done(function () { |
