[REF] website_rating: 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>
This commit is contained in:
Vincent Schippefilt
2019-03-06 20:07:17 +01:00
committed by Aaron Bohy
co-authored by Aaron Bohy Christophe Matthieu Mathieu Duckerts-Antoine David Monjoie Martin Geubelle svs-odoo
parent fdaa417165
commit b06dacd358
@@ -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)
);
]);
},
});
});