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

This commit is contained in:
Julian Lam
2014-07-10 13:35:48 -04:00
parent 84832f57cc
commit 23c4b8ca35

View File

@@ -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 {