summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-12-19 09:10:13 +0100
committerJulius Härtl <jus@bitgrid.net>2017-12-19 18:49:26 +0100
commit328047f6388acda1b633c3a9f1660213a3632499 (patch)
tree466be5c2dcb6137f94e5d342fe109c1c07e743aa /core/js
parent4c3eb80a9102ceaf08d5143eaba8877a8a43e57d (diff)
downloadnextcloud-server-328047f6388acda1b633c3a9f1660213a3632499.tar.gz
nextcloud-server-328047f6388acda1b633c3a9f1660213a3632499.zip
Also do callback on the failing function
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/js')
-rw-r--r--core/js/jquery.avatar.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/js/jquery.avatar.js b/core/js/jquery.avatar.js
index 67dd10482fa..958f0f9edd7 100644
--- a/core/js/jquery.avatar.js
+++ b/core/js/jquery.avatar.js
@@ -129,6 +129,10 @@
setAvatarForUnknownUser($div);
$div.removeClass('icon-loading');
}
+
+ if(typeof callback === 'function') {
+ callback();
+ }
};
$div.addClass('icon-loading');