[Pkg-owncloud-commits] [owncloud] 204/258: fix for issue #10483
David Prévot
taffit at moszumanska.debian.org
Sat Oct 11 17:22:36 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit aedd64b5a68ee78bc38ebdbd887745bae5830d37
Author: michag86 <micha_g at arcor.de>
Date: Mon Oct 6 08:53:12 2014 +0200
fix for issue #10483
---
settings/js/users/users.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/settings/js/users/users.js b/settings/js/users/users.js
index 4e686aa..c2459c9 100644
--- a/settings/js/users/users.js
+++ b/settings/js/users/users.js
@@ -615,12 +615,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);
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list