summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2012-11-06 22:02:46 +0000
committerBrice Maron <brice@bmaron.net>2012-11-06 22:02:46 +0000
commit1d2d2cf2619234442b29e26260723ff2c1c101ca (patch)
tree16be871c36fc447f10d8295cae1764af974d502c /settings/js
parentdbbbfd4b2ba74d67985e282e11462d60e136deb9 (diff)
downloadnextcloud-server-1d2d2cf2619234442b29e26260723ff2c1c101ca.tar.gz
nextcloud-server-1d2d2cf2619234442b29e26260723ff2c1c101ca.zip
Fix delete link when new user is added
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/users.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/settings/js/users.js b/settings/js/users.js
index 20bd94993bc..eef4dc3fc54 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();
}