diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2013-10-07 19:00:15 +0400 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2013-10-07 19:00:15 +0400 |
commit | a240e639816c1c2c38c5425ce26116a811aac2ea (patch) | |
tree | 31341aace0a5954b08bc0a4bb4db56f08b455b94 /settings | |
parent | b48dffa9a302881e8d1effe9d03bc97e96adc23b (diff) |
Fix new user avatar. Ref#5166
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/users.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/settings/js/users.js b/settings/js/users.js index 48c4529527b..5b7802c1e36 100644 --- a/settings/js/users.js +++ b/settings/js/users.js @@ -85,6 +85,9 @@ var UserList = { add: function (username, displayname, groups, subadmin, quota, sort) { var tr = $('tbody tr').first().clone(); + if (tr.find('div.avatardiv')){ + $('div.avatardiv', tr).avatar(username, 32); + } tr.attr('data-uid', username); tr.attr('data-displayName', displayname); tr.find('td.name').text(username); @@ -404,6 +407,9 @@ $(document).ready(function () { OC.filePath('settings', 'ajax', 'changedisplayname.php'), {username: uid, displayName: $(this).val()}, function (result) { + if (result && result.status==='success'){ + img.parent().parent().find('div.avatardiv').avatar(result.data.username, 32); + } } ); input.blur(); |