diff --git a/formwidgets/responsiveimage/assets/src/popup.mixin.js b/formwidgets/responsiveimage/assets/src/popup.mixin.js index c30cb0d..4470f49 100644 --- a/formwidgets/responsiveimage/assets/src/popup.mixin.js +++ b/formwidgets/responsiveimage/assets/src/popup.mixin.js @@ -52,6 +52,12 @@ export default { $.oc.flashMsg({ text: 'Bitte einen Titel angeben.', class: 'error' }); return; } + + if (_cls.aspectRatio && !_cls.popup.values.crop) { + $.oc.flashMsg({ text: 'Bitte das Bild beschneiden', class: 'error' }); + return; + } + $popup.modal('hide'); resolve(_cls.popup.values);