From 463d9312090c97d37546f2a8ce20362a1909693e Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 2 Jul 2021 10:53:10 +0200 Subject: [PATCH] Fix cropper in avatar widget --- api/js/etemplate/et2_widget_image.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_widget_image.ts b/api/js/etemplate/et2_widget_image.ts index 8fa71a3963..b5b6890139 100644 --- a/api/js/etemplate/et2_widget_image.ts +++ b/api/js/etemplate/et2_widget_image.ts @@ -24,6 +24,7 @@ import {et2_IDetachedDOM} from "./et2_core_interfaces"; import {et2_no_init} from "./et2_core_common"; import {egw} from "../jsapi/egw_global"; import {et2_dialog} from "./et2_widget_dialog"; +import '../../../vendor/bower-asset/cropper/dist/cropper.min.js'; /** * Class which implements the "image" XET-Tag @@ -653,7 +654,7 @@ export class et2_avatar extends et2_image } } et2_register_widget(et2_avatar, ["avatar"]); - +window['et2_avatar'] = et2_avatar; /** * Avatar readonly widget to only display user profile picture or * user letter avatar based on user's firstname lastname.