diff options
| author | Simon Lejeune <sle@openerp.com> | 2016-06-28 14:19:47 +0200 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2016-07-05 17:44:56 +0200 |
| commit | 06770f53bf91ce3fef635ce5103f4c72259ceb7c (patch) | |
| tree | f2b1e2a78391abe42ea53759e25d476006d398ab /addons/web/static/src/js/web_client.js | |
| parent | 2fdf6318099d74b17f9e42e563d2623ab2259912 (diff) | |
[FIX] web: allow `on_(attach|detach)_callback` callbacks to be called
The `on_attach_callback` and `on_detach_callback` callbacks are
called when an a widget is attached / detached according to the
`is_in_DOM` variable. As the community's action manager cannot
be detached from the DOM, we can hardcode this value to true.
This allow to run these callbacks when needed.
Diffstat (limited to 'addons/web/static/src/js/web_client.js')
| -rw-r--r-- | addons/web/static/src/js/web_client.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/web/static/src/js/web_client.js b/addons/web/static/src/js/web_client.js index 570e64ac2bd..99237dccc6c 100644 --- a/addons/web/static/src/js/web_client.js +++ b/addons/web/static/src/js/web_client.js @@ -24,6 +24,10 @@ return AbstractWebClient.extend({ }, show_application: function() { var self = this; + + // Allow to call `on_attach_callback` and `on_detach_callback` when needed + this.action_manager.is_in_DOM = true; + this.toggle_bars(true); this.set_title(); this.update_logo(); |
