mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-10-06 03:44:56 +08:00
Small changes
This commit is contained in:
parent
919fd19f8f
commit
c6a9563d81
6 changed files with 46 additions and 13 deletions
|
@ -247,6 +247,16 @@ LinkBuilder.prototype.emptyContactPic = function ()
|
|||
return 'rainloop/v/' + this.sVersion + '/static/css/images/empty-contact.png';
|
||||
};
|
||||
|
||||
/**
|
||||
* @return {string}
|
||||
*/
|
||||
LinkBuilder.prototype.emptyFullContactPic = function ()
|
||||
{
|
||||
return window.location.protocol + '//' + window.location.hostname +
|
||||
('80' === '' + window.location.port || '' === '' + window.location.port ? '' : ':' + window.location.port) + window.location.pathname +
|
||||
'rainloop/v/' + this.sVersion + '/static/css/images/empty-contact.png';
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} sFileName
|
||||
* @return {string}
|
||||
|
|
|
@ -56,10 +56,11 @@ AbstractCacheStorage.prototype.getUserPic = function (sEmail, fCallback)
|
|||
sUrl = '' !== sService && this.oServices[sService] ? this.oServices[sService] : '';
|
||||
}
|
||||
|
||||
|
||||
if (this.bCapaGravatar && '' === sUrl)
|
||||
if (this.bCapaGravatar && '' === sUrl && '' !== sEmailLower)
|
||||
{
|
||||
fCallback('//secure.gravatar.com/avatar/' + Utils.md5(sEmailLower) + '.jpg?s=80&d=mm', sEmail);
|
||||
// fCallback('//secure.gravatar.com/avatar/' + Utils.md5(sEmailLower) + '.jpg?s=80&d=' +
|
||||
// window.encodeURIComponent(RL.link().emptyFullContactPic()), sEmail);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -3752,6 +3752,16 @@ LinkBuilder.prototype.emptyContactPic = function ()
|
|||
return 'rainloop/v/' + this.sVersion + '/static/css/images/empty-contact.png';
|
||||
};
|
||||
|
||||
/**
|
||||
* @return {string}
|
||||
*/
|
||||
LinkBuilder.prototype.emptyFullContactPic = function ()
|
||||
{
|
||||
return window.location.protocol + '//' + window.location.hostname +
|
||||
('80' === '' + window.location.port || '' === '' + window.location.port ? '' : ':' + window.location.port) + window.location.pathname +
|
||||
'rainloop/v/' + this.sVersion + '/static/css/images/empty-contact.png';
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} sFileName
|
||||
* @return {string}
|
||||
|
@ -7788,10 +7798,11 @@ AbstractCacheStorage.prototype.getUserPic = function (sEmail, fCallback)
|
|||
sUrl = '' !== sService && this.oServices[sService] ? this.oServices[sService] : '';
|
||||
}
|
||||
|
||||
|
||||
if (this.bCapaGravatar && '' === sUrl)
|
||||
if (this.bCapaGravatar && '' === sUrl && '' !== sEmailLower)
|
||||
{
|
||||
fCallback('//secure.gravatar.com/avatar/' + Utils.md5(sEmailLower) + '.jpg?s=80&d=mm', sEmail);
|
||||
// fCallback('//secure.gravatar.com/avatar/' + Utils.md5(sEmailLower) + '.jpg?s=80&d=' +
|
||||
// window.encodeURIComponent(RL.link().emptyFullContactPic()), sEmail);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
4
rainloop/v/0.0.0/static/js/admin.min.js
vendored
4
rainloop/v/0.0.0/static/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -3756,6 +3756,16 @@ LinkBuilder.prototype.emptyContactPic = function ()
|
|||
return 'rainloop/v/' + this.sVersion + '/static/css/images/empty-contact.png';
|
||||
};
|
||||
|
||||
/**
|
||||
* @return {string}
|
||||
*/
|
||||
LinkBuilder.prototype.emptyFullContactPic = function ()
|
||||
{
|
||||
return window.location.protocol + '//' + window.location.hostname +
|
||||
('80' === '' + window.location.port || '' === '' + window.location.port ? '' : ':' + window.location.port) + window.location.pathname +
|
||||
'rainloop/v/' + this.sVersion + '/static/css/images/empty-contact.png';
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} sFileName
|
||||
* @return {string}
|
||||
|
@ -17883,10 +17893,11 @@ AbstractCacheStorage.prototype.getUserPic = function (sEmail, fCallback)
|
|||
sUrl = '' !== sService && this.oServices[sService] ? this.oServices[sService] : '';
|
||||
}
|
||||
|
||||
|
||||
if (this.bCapaGravatar && '' === sUrl)
|
||||
if (this.bCapaGravatar && '' === sUrl && '' !== sEmailLower)
|
||||
{
|
||||
fCallback('//secure.gravatar.com/avatar/' + Utils.md5(sEmailLower) + '.jpg?s=80&d=mm', sEmail);
|
||||
// fCallback('//secure.gravatar.com/avatar/' + Utils.md5(sEmailLower) + '.jpg?s=80&d=' +
|
||||
// window.encodeURIComponent(RL.link().emptyFullContactPic()), sEmail);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
10
rainloop/v/0.0.0/static/js/app.min.js
vendored
10
rainloop/v/0.0.0/static/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue