mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Merge pull request #4142 from nextcloud/numeric_avatar
Allow avatars for full numeric users
This commit is contained in:
commit
e8f2ee769b
1 changed files with 7 additions and 0 deletions
|
|
@ -48,6 +48,13 @@
|
|||
|
||||
(function ($) {
|
||||
$.fn.avatar = function(user, size, ie8fix, hidedefault, callback, displayname) {
|
||||
if (typeof(user) !== 'undefined') {
|
||||
user = String(user);
|
||||
}
|
||||
if (typeof(displayname) !== 'undefined') {
|
||||
displayname = String(displayname);
|
||||
}
|
||||
|
||||
if (typeof(size) === 'undefined') {
|
||||
if (this.height() > 0) {
|
||||
size = this.height();
|
||||
|
|
|
|||
Loading…
Reference in a new issue