summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorrde <rde@odoo.com>2017-10-15 23:56:33 +0200
committerrde <rde@odoo.com>2017-10-18 10:58:53 +0200
commit4618cbd513036220fc210fadb1024ec1facd6559 (patch)
tree77cf72a5dfb52225af58aa07f79cf858a54bfb88 /addons/web/static/src/xml/base.xml
parent3285a0384c1bdabc5d6c9c906a7ed54d3e595e7c (diff)
[FIX] website: new class to disable button after first click
Before this commit, if you had a simple link (just a href, not handled in JS), you couldn't simply make it clickable only once. This could be a problem in some cases. (eg: a btn creating a record, it would create as many record as many times you clicked on it) The same behavior could occur for link/button redirecting to a route creating a record. There is a window of time between the click on the btn and the moment the page is getting redirected. You have time to click multiple time on it and it would call the URL multiple time. Now, there is a class 'js_disable_on_click' that will be handled in website_root.js and will disabled the button after the first click. The fix was originally aimed to fix multiple click on "Create Page" btn on 404
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
0 files changed, 0 insertions, 0 deletions