mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
refactor: hide modal and show alert on success
This commit is contained in:
@@ -134,9 +134,9 @@ define('admin/manage/category', [
|
||||
if (intervalId) {
|
||||
clearInterval(intervalId);
|
||||
}
|
||||
modal.modal('hide');
|
||||
alerts.success('[[admin/manage/categories:alert.purge-success]]');
|
||||
setTimeout(() => {
|
||||
modal.modal('hide');
|
||||
alerts.success('[[admin/manage/categories:alert.purge-success]]');
|
||||
ajaxify.go('admin/manage/categories');
|
||||
}, 2500);
|
||||
}).catch(alerts.error);
|
||||
|
||||
Reference in New Issue
Block a user