Browse Source

Merge pull request #4142 from nextcloud/numeric_avatar

Allow avatars for full numeric users
tags/v12.0.0beta1
Morris Jobke 7 years ago
parent
commit
e8f2ee769b
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      core/js/jquery.avatar.js

+ 7
- 0
core/js/jquery.avatar.js View File

@@ -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…
Cancel
Save