mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 21:30:30 +01:00
refactor: more immediate feedback on category purge
This commit is contained in:
@@ -131,14 +131,14 @@ define('admin/manage/category', [
|
||||
}, 1000);
|
||||
|
||||
api.del('/categories/' + ajaxify.data.category.cid).then(() => {
|
||||
if (intervalId) {
|
||||
clearInterval(intervalId);
|
||||
}
|
||||
setTimeout(() => {
|
||||
if (intervalId) {
|
||||
clearInterval(intervalId);
|
||||
}
|
||||
modal.modal('hide');
|
||||
alerts.success('[[admin/manage/categories:alert.purge-success]]');
|
||||
ajaxify.go('admin/manage/categories');
|
||||
}, 5000);
|
||||
}, 2500);
|
||||
}).catch(alerts.error);
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user