diff options
| author | qsm-odoo <qsm@odoo.com> | 2018-01-25 17:30:22 +0100 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2018-02-05 15:18:55 +0100 |
| commit | 1ed7f219a59a2ff036bcaf72cb423b961a39802c (patch) | |
| tree | 435f97084239661d4eec9d30624ab83611d2101b /addons/mass_mailing/static/src/js | |
| parent | 4999449c8a19728e143d2fb6853ebc20f3cf298d (diff) | |
[FIX] mass_mailing: complete commit 66aefb1723c336cc1c61fb32926ed926ba9e29e4
- There should not be margins around lists
- There should not be editor overlay on the whole content
Diffstat (limited to 'addons/mass_mailing/static/src/js')
| -rw-r--r-- | addons/mass_mailing/static/src/js/mass_mailing_editor.js | 25 |
1 files changed, 13 insertions, 12 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(); } |
