diff options
| author | Vincent Schippefilt <vsc@odoo.com> | 2019-03-06 14:02:32 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2019-03-06 20:07:17 +0100 |
| commit | a3dfd04ad670b425df4d36ff714a4d4e260ff5a9 (patch) | |
| tree | 5f307d80442d351693f606fe2ab2f7d62b923a16 /addons/web_diagram/static/src/js/graph.js | |
| parent | ab56e637b7f97ddcdbcc9baea99ae097e342409c (diff) | |
[REF] web_diagram: adapt code after jQuery update
Part of task 1896658
Co-authored-by: Aaron Bohy <aab@odoo.com>
Co-authored-by: Christophe Matthieu <chm@odoo.com>
Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
Co-authored-by: David Monjoie <dmo@odoo.com>
Co-authored-by: Martin Geubelle <mge@odoo.com>
Co-authored-by: svs-odoo <svs@odoo.com>
Co-authored-by: Vincent Schippefilt <vsc@odoo.com>
Diffstat (limited to 'addons/web_diagram/static/src/js/graph.js')
| -rw-r--r-- | addons/web_diagram/static/src/js/graph.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web_diagram/static/src/js/graph.js b/addons/web_diagram/static/src/js/graph.js index 57eaff582ee..d7e54389340 100644 --- a/addons/web_diagram/static/src/js/graph.js +++ b/addons/web_diagram/static/src/js/graph.js @@ -87,11 +87,11 @@ dummy_circle.animate({'r': close_button_radius }, 400, 'linear'); if(entity_type == "node"){ - $.when(GraphNode.destruction_callback(entity)).done(function () { + Promise.resolve(GraphNode.destruction_callback(entity)).then(function () { entity.remove(); }); }else if(entity_type == "edge"){ - $.when(GraphEdge.destruction_callback(entity)).done(function () { + Promise.resolve(GraphEdge.destruction_callback(entity)).then(function () { entity.remove(); }); } |
