Skip to content

Commit 8df6129

Browse files
rullzerskjnldsv
authored andcommitted
Still call callback once avatar is loaded
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
1 parent 7f757b5 commit 8df6129

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/js/jquery.avatar.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@
143143
$div.text('');
144144
$div.append(img);
145145
$div.clearimageplaceholder();
146+
147+
if(typeof callback === 'function') {
148+
callback();
149+
}
146150
};
147151

148152
$div.addClass('icon-loading');

0 commit comments

Comments
 (0)