Merge pull request #4142 from nextcloud/numeric_avatar
Allow avatars for full numeric users
This commit is contained in:
commit
e8f2ee769b
|
@ -48,6 +48,13 @@
|
||||||
|
|
||||||
(function ($) {
|
(function ($) {
|
||||||
$.fn.avatar = function(user, size, ie8fix, hidedefault, callback, displayname) {
|
$.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 (typeof(size) === 'undefined') {
|
||||||
if (this.height() > 0) {
|
if (this.height() > 0) {
|
||||||
size = this.height();
|
size = this.height();
|
||||||
|
|
Loading…
Reference in New Issue