From b06dacd35899328f6a167f97118931ea47b21934 Mon Sep 17 00:00:00 2001 From: Vincent Schippefilt Date: Wed, 6 Mar 2019 14:02:37 +0100 Subject: [PATCH] [REF] website_rating: adapt code after jQuery update Part of task 1896658 Co-authored-by: Aaron Bohy Co-authored-by: Christophe Matthieu Co-authored-by: Mathieu Duckerts-Antoine Co-authored-by: David Monjoie Co-authored-by: Martin Geubelle Co-authored-by: svs-odoo Co-authored-by: Vincent Schippefilt --- addons/website_rating/static/src/js/website_mail.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/website_rating/static/src/js/website_mail.js b/addons/website_rating/static/src/js/website_mail.js index 15b9b4ce503..4faa0fbb306 100644 --- a/addons/website_rating/static/src/js/website_mail.js +++ b/addons/website_rating/static/src/js/website_mail.js @@ -332,7 +332,7 @@ var RatingPopupComposer = publicWidget.Widget.extend({ this._composer = new PortalComposer(this, this.options); defs.push(this._composer.replace(this.$('.o_portal_chatter_composer'))); - return $.when.apply($, defs); + return Promise.all(defs); }, }); @@ -344,10 +344,10 @@ publicWidget.registry.RatingPopupComposer = publicWidget.Widget.extend({ */ start: function () { var ratingPopup = new RatingPopupComposer(this, this.$el.data()); - return $.when( + return Promise.all([ this._super.apply(this, arguments), ratingPopup.appendTo(this.$el) - ); + ]); }, }); });