Allow avatars for full numeric users
Fixes #4087 Because of fancy javascript if a full numeric uid was used javascript would convert this to an int. Now we just convert everything to a string first. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
626d03e3d4
commit
54c68519ce
|
@ -48,6 +48,9 @@
|
|||
|
||||
(function ($) {
|
||||
$.fn.avatar = function(user, size, ie8fix, hidedefault, callback, displayname) {
|
||||
user = String(user);
|
||||
displayname = String(displayname);
|
||||
|
||||
if (typeof(size) === 'undefined') {
|
||||
if (this.height() > 0) {
|
||||
size = this.height();
|
||||
|
|
Loading…
Reference in New Issue