Fix et2_avatar cropper not working

This commit is contained in:
Hadi Nategh 2021-06-25 13:15:43 +02:00
parent b79cc4ff1d
commit d76eabbfb0
3 changed files with 3 additions and 1 deletions

View File

@ -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.

View File

@ -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.

View File

@ -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();