Still call callback once avatar is loaded

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2017-12-14 10:10:11 +01:00 committed by Julius Härtl
parent a118817a69
commit 6b5e3a9365
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 4 additions and 0 deletions

View File

@ -143,6 +143,10 @@
$div.text('');
$div.append(img);
$div.clearimageplaceholder();
if(typeof callback === 'function') {
callback();
}
};
$div.addClass('icon-loading');