mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-10-16 00:25:57 +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 '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
|
* @param {string} sFileName
|
||||||
* @return {string}
|
* @return {string}
|
||||||
|
|
|
@ -56,10 +56,11 @@ AbstractCacheStorage.prototype.getUserPic = function (sEmail, fCallback)
|
||||||
sUrl = '' !== sService && this.oServices[sService] ? this.oServices[sService] : '';
|
sUrl = '' !== sService && this.oServices[sService] ? this.oServices[sService] : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.bCapaGravatar && '' === sUrl && '' !== sEmailLower)
|
||||||
if (this.bCapaGravatar && '' === sUrl)
|
|
||||||
{
|
{
|
||||||
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=mm', sEmail);
|
||||||
|
// fCallback('//secure.gravatar.com/avatar/' + Utils.md5(sEmailLower) + '.jpg?s=80&d=' +
|
||||||
|
// window.encodeURIComponent(RL.link().emptyFullContactPic()), sEmail);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -3752,6 +3752,16 @@ LinkBuilder.prototype.emptyContactPic = function ()
|
||||||
return 'rainloop/v/' + this.sVersion + '/static/css/images/empty-contact.png';
|
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
|
* @param {string} sFileName
|
||||||
* @return {string}
|
* @return {string}
|
||||||
|
@ -7788,10 +7798,11 @@ AbstractCacheStorage.prototype.getUserPic = function (sEmail, fCallback)
|
||||||
sUrl = '' !== sService && this.oServices[sService] ? this.oServices[sService] : '';
|
sUrl = '' !== sService && this.oServices[sService] ? this.oServices[sService] : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.bCapaGravatar && '' === sUrl && '' !== sEmailLower)
|
||||||
if (this.bCapaGravatar && '' === sUrl)
|
|
||||||
{
|
{
|
||||||
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=mm', sEmail);
|
||||||
|
// fCallback('//secure.gravatar.com/avatar/' + Utils.md5(sEmailLower) + '.jpg?s=80&d=' +
|
||||||
|
// window.encodeURIComponent(RL.link().emptyFullContactPic()), sEmail);
|
||||||
}
|
}
|
||||||
else
|
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 '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
|
* @param {string} sFileName
|
||||||
* @return {string}
|
* @return {string}
|
||||||
|
@ -17883,10 +17893,11 @@ AbstractCacheStorage.prototype.getUserPic = function (sEmail, fCallback)
|
||||||
sUrl = '' !== sService && this.oServices[sService] ? this.oServices[sService] : '';
|
sUrl = '' !== sService && this.oServices[sService] ? this.oServices[sService] : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.bCapaGravatar && '' === sUrl && '' !== sEmailLower)
|
||||||
if (this.bCapaGravatar && '' === sUrl)
|
|
||||||
{
|
{
|
||||||
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=mm', sEmail);
|
||||||
|
// fCallback('//secure.gravatar.com/avatar/' + Utils.md5(sEmailLower) + '.jpg?s=80&d=' +
|
||||||
|
// window.encodeURIComponent(RL.link().emptyFullContactPic()), sEmail);
|
||||||
}
|
}
|
||||||
else
|
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