[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.
This commit is contained in:
qsm-odoo
2018-06-21 12:56:38 +02:00
parent a04b79a205
commit bf64efb5a0
@@ -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;