File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 29
29
rotateControls : true ,
30
30
modal :false ,
31
31
customUploadButtonId :'' ,
32
+ customCropButtonId : '' ,
32
33
loaderHtml :'' ,
33
34
scaleToFill : true ,
34
35
processInline : false ,
414
415
cropControlRotateRight = '<i class="cropControlRotateRight"></i>' ;
415
416
}
416
417
417
- html = '<div class="cropControls cropControlsCrop">' + cropControlZoomMuchIn + cropControlZoomIn + cropControlZoomOut + cropControlZoomMuchOut + cropControlRotateLeft + cropControlRotateRight + cropControlCrop + cropControlReset + '</div>' ;
418
+ if ( that . options . customCropButtonId === '' ) {
419
+ html = '<div class="cropControls cropControlsCrop">' + cropControlZoomMuchIn + cropControlZoomIn + cropControlZoomOut + cropControlZoomMuchOut + cropControlRotateLeft + cropControlRotateRight + cropControlCrop + cropControlReset + '</div>' ;
420
+ } else {
421
+ html = '<div class="cropControls cropControlsCrop">' + cropControlZoomMuchIn + cropControlZoomIn + cropControlZoomOut + cropControlZoomMuchOut + cropControlRotateLeft + cropControlRotateRight + cropControlReset + '</div>' ;
422
+ $ ( '#' + that . options . customCropButtonId ) . on ( 'click' , function ( ) {
423
+ that . crop ( ) ;
424
+ } ) ;
425
+ }
418
426
419
427
that . obj . append ( html ) ;
420
428
You can’t perform that action at this time.
0 commit comments