diff --git a/api/js/etemplate/et2_widget_image.js b/api/js/etemplate/et2_widget_image.js index acce26a4d8..251023ea73 100644 --- a/api/js/etemplate/et2_widget_image.js +++ b/api/js/etemplate/et2_widget_image.js @@ -526,6 +526,7 @@ et2_avatar.LAVATAR_BG_COLORS = [ et2_avatar.LAVATAR_TEXT_COLOR = '#ffffff'; et2_avatar.LAVATAR_SIZE = 128; 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. diff --git a/api/js/etemplate/et2_widget_image.ts b/api/js/etemplate/et2_widget_image.ts index 8fa71a3963..9f4f0704ca 100644 --- a/api/js/etemplate/et2_widget_image.ts +++ b/api/js/etemplate/et2_widget_image.ts @@ -653,7 +653,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. diff --git a/api/js/jquery/jquery.noconflict.js b/api/js/jquery/jquery.noconflict.js index e488aca3d9..cc7a38ab81 100644 --- a/api/js/jquery/jquery.noconflict.js +++ b/api/js/jquery/jquery.noconflict.js @@ -20,5 +20,6 @@ /api/js/jquery/splitter.js; /api/js/jquery/blueimp/js/blueimp-gallery.min.js; /api/js/Resumable/resumable.js; + /vendor/bower-asset/cropper/dist/cropper.js; */ jQuery.noConflict(); \ No newline at end of file