Skip to content
Snippets Groups Projects
Commit d5c0cae6 authored by Lucas Perais's avatar Lucas Perais Committed by GitHub
Browse files

[FIX] mass_mailing: background snippet option outlook compatible (#20137)

Origin of the fix: the snippet background image did not change the background image.
This was due to commit a14f89c8 which wraps the snippet's content into a table for outlook display compliance

This issue is fixed here, with the modificaion of the background snippet option.

OPW 772442
parent 757e9e58
Branches
Tags
No related merge requests found
......@@ -281,4 +281,15 @@ if ($("#editable_area").html().indexOf('on_change_model_and_list') !== -1) {
$("#editable_area").empty();
}
// Adding compatibility for the outlook compliance of mailings.
// Commit of such compatibility : a14f89c8663c9cafecb1cc26918055e023ecbe42
options.registry.background.include({
start: function() {
this._super();
var $table_target = this.$target.find('table:first');
if ($table_target) {
this.$target = $table_target;
}
}
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment