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 ,
401
402
cropControlRotateRight = '<i class="cropControlRotateRight"></i>' ;
402
403
}
403
404
404
- html = '<div class="cropControls cropControlsCrop">' + cropControlZoomMuchIn + cropControlZoomIn + cropControlZoomOut + cropControlZoomMuchOut + cropControlRotateLeft + cropControlRotateRight + cropControlCrop + cropControlReset + '</div>' ;
405
+ if ( that . options . customCropButtonId === '' ) {
406
+ html = '<div class="cropControls cropControlsCrop">' + cropControlZoomMuchIn + cropControlZoomIn + cropControlZoomOut + cropControlZoomMuchOut + cropControlRotateLeft + cropControlRotateRight + cropControlCrop + cropControlReset + '</div>' ;
407
+ } else {
408
+ html = '<div class="cropControls cropControlsCrop">' + cropControlZoomMuchIn + cropControlZoomIn + cropControlZoomOut + cropControlZoomMuchOut + cropControlRotateLeft + cropControlRotateRight + cropControlReset + '</div>' ;
409
+ $ ( '#' + that . options . customCropButtonId ) . on ( 'click' , function ( ) {
410
+ that . crop ( ) ;
411
+ } ) ;
412
+ }
405
413
406
414
that . obj . append ( html ) ;
407
415
You can’t perform that action at this time.
0 commit comments