Skip to content
Snippets Groups Projects
Commit 4c06c25c authored by Brice Maron's avatar Brice Maron
Browse files

Fix delete link when new user is added

parent 84084b94
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment