diff options
| author | Géry Debongnie <ged@odoo.com> | 2015-12-02 11:04:12 +0100 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2015-12-02 11:13:22 +0100 |
| commit | f58450dbe923c8868f552016131da4d90be0daa0 (patch) | |
| tree | 3ac345a41d42b49690b153e42375196996f40d12 /addons/web/static/src/js/views/graph_view.js | |
| parent | 2d6fd5ea65261bf99254de7ed312a56c95c0b6a0 (diff) | |
[FIX] web_kanban: properly removes nvd3 tooltips
with the recent update of nvd3 to the last version, we fixed a lot of
tooltip issues, but we introduced at least a new problem: when a view
is detached from the dom with a visible tooltip, it no longer is cleaned
up.
In this commit, we simply remove all nvtooltips when we detach a kanban
view (necessary because dashboards inherits from kanban). This is not
really an elegant way to solve the issue, but at least it works. any
improvement is welcome.
Diffstat (limited to 'addons/web/static/src/js/views/graph_view.js')
| -rw-r--r-- | addons/web/static/src/js/views/graph_view.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/graph_view.js b/addons/web/static/src/js/views/graph_view.js index 8a604640fc9..f8f1bba909a 100644 --- a/addons/web/static/src/js/views/graph_view.js +++ b/addons/web/static/src/js/views/graph_view.js @@ -19,6 +19,10 @@ var GraphView = View.extend({ icon: 'fa-bar-chart', view_type: 'graph', + on_detach_callback: function () { + $('body > .nvtooltip').remove(); + }, + init: function(parent, dataset, view_id, options) { this._super(parent, dataset, view_id, options); |
