[FIX] mass_mailing: properly switch to right theme images
The default image inside undropped snippet had to be switched everytime a theme is selected, even on first theme choice as the switch_theme method only switch images of snippet already dropped in the page.
This commit is contained in:
@@ -213,9 +213,10 @@ snippets_editor.Class.include({
|
||||
switch_theme(theme_params);
|
||||
$body.removeClass("o_force_mail_theme_choice");
|
||||
first_choice = false;
|
||||
} else {
|
||||
switch_images(theme_params, $snippets);
|
||||
}
|
||||
|
||||
switch_images(theme_params, $snippets);
|
||||
|
||||
selected_theme = theme_params;
|
||||
|
||||
// Notify form view
|
||||
|
||||
Reference in New Issue
Block a user