Skip to content

Node.js based forum software built for the modern web

only showing ACP setting saved alert if no callback is passed in

Julian Lam23c4b8ca3564
diff --git a/public/src/modules/settings.js b/public/src/modules/settings.js
index df3b76e182..29bc4a4c4e 100644
--- a/public/src/modules/settings.js
+++ b/public/src/modules/settings.js
@@ -476,13 +476,14 @@ define('settings', function () {
hash: hash,
values: values
}, function (err) {
- app.alert({
- title: 'Settings Saved',
- type: 'success',
- timeout: 2500
- });
if (typeof callback === 'function') {
callback();
+ } else {
+ app.alert({
+ title: 'Settings Saved',
+ type: 'success',
+ timeout: 2500
+ });
}
});
} else {