diff options
| author | Xavier Morel <xmo@odoo.com> | 2018-11-06 16:26:03 +0000 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2019-01-29 10:22:17 +0000 |
| commit | 1d1d5ed7adfdf8352ddb960293c6c07cd51af51d (patch) | |
| tree | 5430159e83b829b1c9d410700819b9cf6c07c402 /addons/web/static/src/js/views/abstract_controller.js | |
| parent | 9db74611ded3dcb64fc57724c032b44d9d170fae (diff) | |
[IMP] web: prevent default in _onActionClicked
This avoids odd behaviour when leaving a `href="#"` on a link with
target=action: without preventing the default behaviour, it would first
switch to the application switcher (/web/#) then actually execute the
action.
Diffstat (limited to 'addons/web/static/src/js/views/abstract_controller.js')
| -rw-r--r-- | addons/web/static/src/js/views/abstract_controller.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/abstract_controller.js b/addons/web/static/src/js/views/abstract_controller.js index eb773d91057..57b3771427b 100644 --- a/addons/web/static/src/js/views/abstract_controller.js +++ b/addons/web/static/src/js/views/abstract_controller.js @@ -470,6 +470,7 @@ var AbstractController = mvc.Controller.extend(ActionMixin, { additional_context: _.extend({}, data.context) }); } + return false; }, /** * FIXME: this logic should be rethought |
