diff options
| author | qsm-odoo <qsm@odoo.com> | 2016-09-22 16:24:10 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2016-09-23 11:16:16 +0200 |
| commit | 6ee87f74f5408ca0151d9225a61393d85aaa7510 (patch) | |
| tree | 7afaabc08b661122dd62b5933870d672c091b7ab /addons/mass_mailing/static/src/js | |
| parent | 05205a277ed02511f20a0bd3785230baffb6c60f (diff) | |
[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.
Diffstat (limited to 'addons/mass_mailing/static/src/js')
| -rw-r--r-- | addons/mass_mailing/static/src/js/mass_mailing_editor.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/mass_mailing/static/src/js/mass_mailing_editor.js b/addons/mass_mailing/static/src/js/mass_mailing_editor.js index c009334e49b..0cb446d3d99 100644 --- a/addons/mass_mailing/static/src/js/mass_mailing_editor.js +++ b/addons/mass_mailing/static/src/js/mass_mailing_editor.js @@ -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 |
