[FIX] web_editor: fix forward-port

Forward-port of https://github.com/odoo/odoo/commit/227fc6408ddc998529bb1c38222ddba50f40868b
made with https://github.com/odoo/odoo/commit/717f4583949219c346c87c390fbc336b4f31571c
introduced a JS error.

closes odoo/odoo#28187
This commit is contained in:
qsm-odoo
2018-10-26 09:44:13 +00:00
parent e968d1de7e
commit cd580dd605
@@ -834,7 +834,7 @@ registry.colorpicker = SnippetOption.extend({
*/
_onColorResetButtonClick: function () {
this.$target.removeClass(this.classes);
self.$target.trigger('content_changed');
this.$target.trigger('content_changed');
this.$el.find('.colorpicker button.selected').removeClass('selected');
},
});