[Pkg-owncloud-commits] [owncloud] 205/258: variable for found avatar div
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 4e74983676354cedcc2a77f297f30fcba07bd795
Author: michag86 <micha_g at arcor.de>
Date: Tue Oct 7 10:44:36 2014 +0200
variable for found avatar div
---
settings/js/users/users.js | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/settings/js/users/users.js b/settings/js/users/users.js
index c2459c9..4c5d8b4 100644
--- a/settings/js/users/users.js
+++ b/settings/js/users/users.js
@@ -615,15 +615,16 @@ $(document).ready(function () {
.keypress(function (event) {
if (event.keyCode === 13) {
if ($(this).val().length > 0) {
- if ($tr.find('div.avatardiv').length) {
- $tr.find('.avatardiv').imageplaceholder(uid, displayName);
+ $div = $tr.find('div.avatardiv')
+ if ($div.length) {
+ $div.imageplaceholder(uid, displayName);
}
$.post(
OC.filePath('settings', 'ajax', 'changedisplayname.php'),
{username: uid, displayName: $(this).val()},
function (result) {
- if (result && result.status==='success' && $tr.find('div.avatardiv').length){
- $tr.find('.avatardiv').avatar(result.data.username, 32);
+ if (result && result.status==='success' && $div.length){
+ $div.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