From 6b5e3a936584add25af32c73bf49d0a8e6288e9a Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 14 Dec 2017 10:10:11 +0100 Subject: [PATCH] Still call callback once avatar is loaded Signed-off-by: Roeland Jago Douma --- core/js/jquery.avatar.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/js/jquery.avatar.js b/core/js/jquery.avatar.js index 0d4c063a91..ae678f17ff 100644 --- a/core/js/jquery.avatar.js +++ b/core/js/jquery.avatar.js @@ -143,6 +143,10 @@ $div.text(''); $div.append(img); $div.clearimageplaceholder(); + + if(typeof callback === 'function') { + callback(); + } }; $div.addClass('icon-loading');