mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-10-06 10:12:46 +02:00
Implement avatar readonly widget
This commit is contained in:
parent
df58b405af
commit
9c2d7abd55
@ -533,12 +533,29 @@ var et2_avatar = (function(){ "use strict"; return et2_image.extend(
|
|||||||
});}).call(this);
|
});}).call(this);
|
||||||
et2_register_widget(et2_avatar, ["avatar"]);
|
et2_register_widget(et2_avatar, ["avatar"]);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Avatar readonly widget to only display user profile picture or
|
||||||
|
* user letter avatar based on user's firstname lastname.
|
||||||
|
*
|
||||||
|
* @augments et2_baseWidget
|
||||||
|
*/
|
||||||
|
var et2_avatar_ro = (function(){ "use strict"; return et2_avatar.extend(
|
||||||
|
{
|
||||||
|
init: function ()
|
||||||
|
{
|
||||||
|
this._super.apply(this,arguments);
|
||||||
|
this.options.editable = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
});}).call(this);
|
||||||
|
et2_register_widget(et2_avatar_ro, ["avatar_ro"]);
|
||||||
|
|
||||||
jQuery.extend(et2_avatar,
|
jQuery.extend(et2_avatar,
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Function runs after uplaod in avatar dialog is finished and it tries to
|
* Function runs after uplaod in avatar dialog is finished and it tries to
|
||||||
* update image and cropper container.
|
* update image and cropper container.
|
||||||
*
|
*
|
||||||
* @param {type} e
|
* @param {type} e
|
||||||
* @returns {undefined}
|
* @returns {undefined}
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user