diff options
| author | qsm-odoo <qsm@odoo.com> | 2018-06-20 16:03:53 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2018-06-21 12:56:38 +0200 |
| commit | bf64efb5a0684bd61f3c2d520253721fe98c27c4 (patch) | |
| tree | 1d420a5865b19225c9d309a0ee790128a579e587 /addons/web_editor | |
| parent | a04b79a205b09c291187373c23a01e1be9d9769c (diff) | |
[FIX] web_editor: do not 'reset' crop feature when changing ratio
Before this commit, when the user changed the ratio option in the crop
dialog, the image zoom/rotation were reset for no apparent reason.
Diffstat (limited to 'addons/web_editor')
| -rw-r--r-- | addons/web_editor/static/src/js/widgets/widgets.js | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/widgets/widgets.js b/addons/web_editor/static/src/js/widgets/widgets.js index d0df042fa82..ec747badabb 100644 --- a/addons/web_editor/static/src/js/widgets/widgets.js +++ b/addons/web_editor/static/src/js/widgets/widgets.js @@ -1799,7 +1799,6 @@ var CropImageDialog = Dialog.extend({ case 'ratio': $option.siblings().removeClass('active'); $option.addClass('active'); - this.$cropperImage.cropper('reset'); this.imageData.aspectRatio = value; this.$cropperImage.cropper('setAspectRatio', this.imageData.aspectRatio); break; |
