mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 10:46:14 +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,
|
hash: hash,
|
||||||
values: values
|
values: values
|
||||||
}, function (err) {
|
}, function (err) {
|
||||||
app.alert({
|
|
||||||
title: 'Settings Saved',
|
|
||||||
type: 'success',
|
|
||||||
timeout: 2500
|
|
||||||
});
|
|
||||||
if (typeof callback === 'function') {
|
if (typeof callback === 'function') {
|
||||||
callback();
|
callback();
|
||||||
|
} else {
|
||||||
|
app.alert({
|
||||||
|
title: 'Settings Saved',
|
||||||
|
type: 'success',
|
||||||
|
timeout: 2500
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user