diff options
| author | eco-odoo <eco@odoo.com> | 2018-05-11 11:25:53 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2018-05-14 09:44:16 +0200 |
| commit | b19b9e756c973b82dddb75f22d0af9893e3438e4 (patch) | |
| tree | c65c84232fb55bf297c09b2adfac775b679af74a /addons/web/static/src/js/views/abstract_controller.js | |
| parent | c1f04bef83aa74edd0cd2c8cf8aa4ff0a6de6aa4 (diff) | |
[FIX] web: click on <a> with type="action" triggers the correct action
Without this fix, clicks on <a> with a sub html tag do not work.
Diffstat (limited to 'addons/web/static/src/js/views/abstract_controller.js')
| -rw-r--r-- | addons/web/static/src/js/views/abstract_controller.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views/abstract_controller.js b/addons/web/static/src/js/views/abstract_controller.js index decaf1884b2..fe4ba14de71 100644 --- a/addons/web/static/src/js/views/abstract_controller.js +++ b/addons/web/static/src/js/views/abstract_controller.js @@ -392,7 +392,7 @@ var AbstractController = AbstractAction.extend(ControlPanelMixin, { */ _onActionClicked: function (event) { event.preventDefault(); - this.do_action(event.target.name); + this.do_action(event.currentTarget.name); }, /** * Intercepts the 'switch_view' event to add the controllerID into the data, |
