summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authormichag86 <micha_g@arcor.de>2014-10-06 08:53:12 +0200
committermichag86 <micha_g@arcor.de>2014-10-06 08:53:12 +0200
commit2849c75646234725b2edf3f9485ddd8294174878 (patch)
tree05ab0616c43987b19f1bff22b248e792bc4f953f /settings
parent6e991a53ec5bc2b70328ffbb7fd3e43811ccb426 (diff)
downloadnextcloud-server-2849c75646234725b2edf3f9485ddd8294174878.tar.gz
nextcloud-server-2849c75646234725b2edf3f9485ddd8294174878.zip
fix for issue #10483
Diffstat (limited to 'settings')
-rw-r--r--settings/js/users/users.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js
index f39f8c2c064..f7948192500 100644
--- a/settings/js/users/users.js
+++ b/settings/js/users/users.js
@@ -616,12 +616,14 @@ $(document).ready(function () {
.keypress(function (event) {
if (event.keyCode === 13) {
if ($(this).val().length > 0) {
- $tr.find('.avatardiv').imageplaceholder(uid, displayName);
+ if ($tr.find('div.avatardiv').length) {
+ $tr.find('.avatardiv').imageplaceholder(uid, displayName);
+ }
$.post(
OC.filePath('settings', 'ajax', 'changedisplayname.php'),
{username: uid, displayName: $(this).val()},
function (result) {
- if (result && result.status==='success'){
+ if (result && result.status==='success' && $tr.find('div.avatardiv').length){
$tr.find('.avatardiv').avatar(result.data.username, 32);
}
}