diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-02-05 17:21:35 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-02-05 17:21:35 +0100 |
| commit | bba0bc6dedb96c3af8e543be8496967e3f3e68c8 (patch) | |
| tree | 1e1df595475847c0c195452d606b5cfe95caf51d /addons/mass_mailing/static/src | |
| parent | 86c0045befc35804bade151799b9738d5e004d31 (diff) | |
| parent | eefca5d492d6f35dd4b063a294b6b8a0a576e83e (diff) | |
[MERGE] forward port branch saas-11.2 up to eefca5d492d
Diffstat (limited to 'addons/mass_mailing/static/src')
| -rw-r--r-- | addons/mass_mailing/static/src/js/mass_mailing_editor.js | 25 | ||||
| -rw-r--r-- | addons/mass_mailing/static/src/less/themes/theme_basic.less | 2 |
2 files changed, 14 insertions, 13 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 62f2062b75c..8ebec45da2b 100644 --- a/addons/mass_mailing/static/src/js/mass_mailing_editor.js +++ b/addons/mass_mailing/static/src/js/mass_mailing_editor.js @@ -326,30 +326,31 @@ snippets_editor.Class.include({ $body.removeClass(all_classes).addClass(theme_params.className); - var $old_layout = $editable_area.find(".o_layout"); - var $new_wrapper, $new_wrapper_content; + var $old_layout = $editable_area.find('.o_layout'); + var $new_wrapper; + var $new_wrapper_content; if (theme_params.nowrap) { - $new_wrapper = $new_wrapper_content = $("<div/>", {"class": "oe_structure"}); - } - else { - // This wrapper structure is the only way to have a responsive and - // centered fixed-width content column on all mail clients + $new_wrapper = $('<div/>', {class: 'oe_structure'}); + $new_wrapper_content = $new_wrapper; + } else { + // This wrapper structure is the only way to have a responsive + // and centered fixed-width content column on all mail clients $new_wrapper = $('<table/>', {class: 'o_mail_wrapper'}); - $new_wrapper_content = $("<td/>", {class: 'o_mail_no_resize o_mail_no_colorpicker o_mail_wrapper_td oe_structure'}); + $new_wrapper_content = $('<td/>', {class: 'o_mail_no_options o_mail_wrapper_td oe_structure'}); $new_wrapper.append($('<tr/>').append( - $("<td/>", {class: 'o_mail_no_resize o_not_editable', contenteditable: 'false'}), + $('<td/>', {class: 'o_mail_no_resize o_not_editable', contenteditable: 'false'}), $new_wrapper_content, - $("<td/>", {class: 'o_mail_no_resize o_not_editable', contenteditable: 'false'}) + $('<td/>', {class: 'o_mail_no_resize o_not_editable', contenteditable: 'false'}) )); } - var $new_layout = $("<div/>", {"class": "o_layout " + theme_params.className}).append($new_wrapper); + var $new_layout = $('<div/>', {class: 'o_layout ' + theme_params.className}).append($new_wrapper); var $contents; if (first_choice) { $contents = theme_params.template; } else if ($old_layout.length) { - $contents = ($old_layout.hasClass("oe_structure") ? $old_layout : $old_layout.find(".oe_structure").first()).contents(); + $contents = ($old_layout.hasClass('oe_structure') ? $old_layout : $old_layout.find('.oe_structure').first()).contents(); } else { $contents = $editable_area.contents(); } diff --git a/addons/mass_mailing/static/src/less/themes/theme_basic.less b/addons/mass_mailing/static/src/less/themes/theme_basic.less index c5c88e8144b..00f3a6304bc 100644 --- a/addons/mass_mailing/static/src/less/themes/theme_basic.less +++ b/addons/mass_mailing/static/src/less/themes/theme_basic.less @@ -19,7 +19,7 @@ } ul, ol { - margin: 13px 0; + margin: 0; } } } |
