fix: go back to post queue after deleting an account in post queue (#11513)

It makes little sense to refresh the page as the content no longer exists, so just go back to the post queue list.
isekai-main
Julian Lam 2 years ago committed by GitHub
parent 42bd1a63cd
commit c3ebda22c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -138,15 +138,15 @@ define('forum/post-queue', [
break;
case 'delete-account':
AccountsDelete.account(uid, ajaxify.refresh);
AccountsDelete.account(uid, ajaxify.go.bind(null, 'post-queue'));
break;
case 'delete-content':
AccountsDelete.content(uid, ajaxify.refresh);
AccountsDelete.content(uid, ajaxify.go.bind(null, 'post-queue'));
break;
case 'delete-all':
AccountsDelete.purge(uid, ajaxify.refresh);
AccountsDelete.purge(uid, ajaxify.go.bind(null, 'post-queue'));
break;
default:

Loading…
Cancel
Save