$('#notification').html(t('users', 'deleted')+' '+uid+'<span class="undo">'+t('users', 'undo')+'</span>');
$('#notification').data('deleteuser',true);
$('#notification').fadeIn();
-
},
/**
$('#notification').fadeOut();
$('tr').filterAttr('data-uid', UserList.deleteUid).remove();
UserList.deleteCanceled = true;
- UserList.deleteFiles = null;
if (ready) {
ready();
}
$('#notification').hide();
$('#notification .undo').live('click', function() {
if($('#notification').data('deleteuser')) {
- $('tbody tr').each(function(index, row) {
- if ($(row).data('uid') == UserList.deleteUid) {
- $(row).show();
- }
- });
+ $('tbody tr').filterAttr('data-uid', UserList.deleteUid).show();
UserList.deleteCanceled=true;
- UserList.deleteFiles=null;
}
$('#notification').fadeOut();
});