mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 23:29:20 +01:00
Do not activate cropper when the widget is set to readonly
This commit is contained in:
parent
2515d457d5
commit
5f4e910d0d
@ -641,7 +641,7 @@ export class et2_avatar extends et2_image
|
||||
}
|
||||
).sendRequest(true);
|
||||
}
|
||||
if (this.options.crop)
|
||||
if (this.options.crop && !this.options.readonly)
|
||||
{
|
||||
jQuery(this.image).cropper({
|
||||
aspectRatio: 1/1,
|
||||
|
Loading…
Reference in New Issue
Block a user