mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 10:16:12 +01:00
only showing ACP setting saved alert if no callback is passed in
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user