mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 10:53:39 +01:00
Do not activate cropper when the widget is set to readonly
This commit is contained in:
parent
16f71b3a0b
commit
7122b6b2d0
@ -494,7 +494,7 @@ var et2_avatar = /** @class */ (function (_super) {
|
||||
self._buildEditableLayer(noPhotoExists);
|
||||
}).sendRequest(true);
|
||||
}
|
||||
if (this.options.crop) {
|
||||
if (this.options.crop && !this.options.readonly) {
|
||||
jQuery(this.image).cropper({
|
||||
aspectRatio: 1 / 1,
|
||||
crop: function (e) {
|
||||
|
@ -637,7 +637,7 @@ 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