Cleanup user settings js

This commit is contained in:
Bart Visscher 2012-11-14 21:23:27 +01:00
parent 8b03b683df
commit 85209a0a00
1 changed files with 1 additions and 8 deletions

View File

@ -29,7 +29,6 @@ var UserList={
$('#notification').html(t('users', 'deleted')+' '+uid+'<span class="undo">'+t('users', 'undo')+'</span>');
$('#notification').data('deleteuser',true);
$('#notification').fadeIn();
},
/**
@ -57,7 +56,6 @@ var UserList={
$('#notification').fadeOut();
$('tr').filterAttr('data-uid', UserList.deleteUid).remove();
UserList.deleteCanceled = true;
UserList.deleteFiles = null;
if (ready) {
ready();
}
@ -401,13 +399,8 @@ $(document).ready(function(){
$('#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();
});