Also do callback on the failing function

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2017-12-19 09:10:13 +01:00 committed by Julius Härtl
parent 4c3eb80a91
commit 328047f638
No known key found for this signature in database
GPG key ID: 4C614C6ED2CDE6DF

View file

@ -129,6 +129,10 @@
setAvatarForUnknownUser($div);
$div.removeClass('icon-loading');
}
if(typeof callback === 'function') {
callback();
}
};
$div.addClass('icon-loading');