diff options
| author | qsm-odoo <qsm@odoo.com> | 2018-01-25 13:33:19 +0100 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2018-01-25 13:56:29 +0100 |
| commit | f79b00c3b71e02f73537cb17285a6902fc0906b5 (patch) | |
| tree | e90847829700bc6dd9080be5cee3606d9a6b850f /addons/web_editor/static/src/js/widgets/widgets.js | |
| parent | 461bf2331d65f072a004ca57fa706744110682ba (diff) | |
[FIX] portal, web_editor: responsive images but with inline display
Commit https://github.com/odoo/odoo/commit/abde8bddf8ec45cf12aab59e95c330321158cfba
made a small change to make all images responsive when they are added
with the editor. This had however the side effect of making them go to
a new line which may not be what we want.
Diffstat (limited to 'addons/web_editor/static/src/js/widgets/widgets.js')
| -rw-r--r-- | addons/web_editor/static/src/js/widgets/widgets.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web_editor/static/src/js/widgets/widgets.js b/addons/web_editor/static/src/js/widgets/widgets.js index bb8f5d9cfb7..6791a21f721 100644 --- a/addons/web_editor/static/src/js/widgets/widgets.js +++ b/addons/web_editor/static/src/js/widgets/widgets.js @@ -286,7 +286,7 @@ var ImageWidget = MediaWidget.extend({ var img = this.images[0]; if (!img.isDocument) { if (!this.$media.is('img')) { - this._replaceMedia($('<img/>', {class: 'img img-responsive'})); + this._replaceMedia($('<img/>')); } this.$media.attr('src', img.src); } else { @@ -409,7 +409,7 @@ var ImageWidget = MediaWidget.extend({ var $div = $(el); if (/gif|jpe|jpg|png/.test($div.data('mimetype'))) { var $img = $('<img/>', { - class: 'img img-responsive', + class: 'img-responsive', src: $div.data('url') || $div.data('src'), }); var def = $.Deferred(); |
