Skip to content

Commit 5b2a1b8

Browse files
committed
add fix to base64 image too
1 parent 6750c70 commit 5b2a1b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/resources/views/crud/fields/base64_image.blade.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,22 +238,27 @@ function bpFieldInitBase64CropperImageElement(element) {
238238
if(crop) {
239239
$rotateLeft.click(function() {
240240
$mainImage.cropper("rotate", 90);
241+
$mainImage.trigger('cropend');
241242
});
242243
243244
$rotateRight.click(function() {
244245
$mainImage.cropper("rotate", -90);
246+
$mainImage.trigger('cropend');
245247
});
246248
247249
$zoomIn.click(function() {
248250
$mainImage.cropper("zoom", 0.1);
251+
$mainImage.trigger('cropend');
249252
});
250253
251254
$zoomOut.click(function() {
252255
$mainImage.cropper("zoom", -0.1);
256+
$mainImage.trigger('cropend');
253257
});
254258
255259
$reset.click(function() {
256260
$mainImage.cropper("reset");
261+
$mainImage.trigger('cropend');
257262
});
258263
}
259264
}

0 commit comments

Comments
 (0)