[Pkg-owncloud-commits] [owncloud] 48/394: Fix delete link when new user is added
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:11:24 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.
commit 1d2d2cf2619234442b29e26260723ff2c1c101ca
Author: Brice Maron <brice at bmaron.net>
Date: Tue Nov 6 22:02:46 2012 +0000
Fix delete link when new user is added
---
settings/js/users.js | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/settings/js/users.js b/settings/js/users.js
index 20bd949..eef4dc3 100644
--- a/settings/js/users.js
+++ b/settings/js/users.js
@@ -93,7 +93,14 @@ var UserList={
UserList.applyMultiplySelect(subadminSelect);
}
if (tr.find('td.remove img').length == 0 && OC.currentUser != username) {
- tr.find('td.remove').append($('<img alt="Delete" title="'+t('settings','Delete')+'" class="svg action" src="'+OC.imagePath('core','actions/delete')+'"/>'));
+ var rm_img = $('<img>', {
+ class: 'svg action',
+ src: OC.imagePath('core','actions/delete'),
+ alt: t('settings','Delete'),
+ title: t('settings','Delete')
+ });
+ var rm_link = $('<a>', { class: 'action delete', href: '#'}).append(rm_img);
+ tr.find('td.remove').append(rm_link);
} else if (OC.currentUser == username) {
tr.find('td.remove a').remove();
}
--
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