diff options
| author | Christophe Matthieu <chm@odoo.com> | 2015-02-09 16:06:12 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2015-02-09 16:06:36 +0100 |
| commit | 07e734cab8dc722f1ff198998d21762e3684c7fb (patch) | |
| tree | 57dc9986edf1ae9439ee05dc6482812d1be54f69 | |
| parent | ff6bf5bb2f72e6e5489d98901148084e0468e27c (diff) | |
[FIX] website editor: don't not apply o_is_inline_editable class for image field to keep image in center
| -rw-r--r-- | addons/website/static/src/js/website.editor.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js index 29e8e82950c..277e7598c3e 100644 --- a/addons/website/static/src/js/website.editor.js +++ b/addons/website/static/src/js/website.editor.js @@ -1322,7 +1322,7 @@ define(['summernote/summernote'], function () { var $node = $(node); // add class to display inline-block for empty t-field - if(window.getComputedStyle(node).display === "inline") { + if(window.getComputedStyle(node).display === "inline" && $node.data('oe-type') !== "image") { $node.addClass('o_is_inline_editable'); } |
