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
1 changed files with 4 additions and 0 deletions

View File

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