diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-03-29 17:17:19 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-29 17:17:19 -0600 |
commit | e8f2ee769b039eed5cd76c77d467483faac4b075 (patch) | |
tree | 47f48dba501756b847e952907c754b3ec502e54e | |
parent | d17678b5b2cb430a223d0053337de6fc7860d0bc (diff) | |
parent | 0da04fd284c827e1d745fa372efd6587d165cddd (diff) | |
download | nextcloud-server-e8f2ee769b039eed5cd76c77d467483faac4b075.tar.gz nextcloud-server-e8f2ee769b039eed5cd76c77d467483faac4b075.zip |
Merge pull request #4142 from nextcloud/numeric_avatar
Allow avatars for full numeric users
-rw-r--r-- | core/js/jquery.avatar.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/js/jquery.avatar.js b/core/js/jquery.avatar.js index 1abe70b79ea..29d019baea7 100644 --- a/core/js/jquery.avatar.js +++ b/core/js/jquery.avatar.js @@ -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(); |