diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-12-13 20:48:37 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2017-12-19 18:49:26 +0100 |
commit | 0f235aec1f85078b13ee7a1b1b8bbccc942a68f3 (patch) | |
tree | 294cf9aeff3b3bc16207678e5b073cd088f4f554 /settings | |
parent | a4ca92f29a24de2868c7149c2cff8550bc0ca55e (diff) | |
download | nextcloud-server-0f235aec1f85078b13ee7a1b1b8bbccc942a68f3.tar.gz nextcloud-server-0f235aec1f85078b13ee7a1b1b8bbccc942a68f3.zip |
Update avatar on displayname change
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/settings/personalInfo.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/settings/js/settings/personalInfo.js b/settings/js/settings/personalInfo.js index 3a4542df748..c95b87b01da 100644 --- a/settings/js/settings/personalInfo.js +++ b/settings/js/settings/personalInfo.js @@ -256,8 +256,14 @@ $(document).ready(function () { }); + var userSettings = new OC.Settings.UserSettings(); var federationSettingsView = new OC.Settings.FederationSettingsView({ - el: '#personal-settings' + el: '#personal-settings', + config: userSettings + }); + + userSettings.on("sync", function() { + updateAvatar(false); }); federationSettingsView.render(); |