[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:
qsm-odoo
2016-09-23 11:16:16 +02:00
parent 05205a277e
commit 6ee87f74f5
@@ -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