From 1d2d2cf2619234442b29e26260723ff2c1c101ca Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Tue, 6 Nov 2012 22:02:46 +0000 Subject: [PATCH] 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 20bd94993b..eef4dc3fc5 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($('Delete')); + var rm_img = $('', { + class: 'svg action', + src: OC.imagePath('core','actions/delete'), + alt: t('settings','Delete'), + title: t('settings','Delete') + }); + var rm_link = $('', { 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(); }