Node.js based forum software built for the modern web
refactor: hide modal and show alert on success
Barış Soner Uşaklıa309918ec04a
diff --git a/public/src/admin/manage/category.js b/public/src/admin/manage/category.jsindex a63e3df6d3..7a6e85486e 100644--- a/public/src/admin/manage/category.js+++ b/public/src/admin/manage/category.js@@ -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);