Fix delete link when new user is added

This commit is contained in:
Brice Maron 2012-11-06 22:02:46 +00:00
parent 84084b9430
commit 4c06c25c6c
1 changed files with 8 additions and 1 deletions

View File

@ -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();
}