Cleanup user settings js
This commit is contained in:
parent
8b03b683df
commit
85209a0a00
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue