From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/auth_signup/static/src/js/signup.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 addons/auth_signup/static/src/js/signup.js (limited to 'addons/auth_signup/static/src') diff --git a/addons/auth_signup/static/src/js/signup.js b/addons/auth_signup/static/src/js/signup.js new file mode 100644 index 00000000..366d4cef --- /dev/null +++ b/addons/auth_signup/static/src/js/signup.js @@ -0,0 +1,25 @@ +odoo.define('auth_signup.signup', function (require) { +'use strict'; + +var publicWidget = require('web.public.widget'); + +publicWidget.registry.SignUpForm = publicWidget.Widget.extend({ + selector: '.oe_signup_form', + events: { + 'submit': '_onSubmit', + }, + + //-------------------------------------------------------------------------- + // Handlers + //-------------------------------------------------------------------------- + + /** + * @private + */ + _onSubmit: function () { + var $btn = this.$('.oe_login_buttons > button[type="submit"]'); + $btn.attr('disabled', 'disabled'); + $btn.prepend(' '); + }, +}); +}); -- cgit v1.2.3