This commit is contained in:
Julian Lam
2013-12-01 16:19:12 -05:00
parent 5621fb8622
commit cc242ca667
2 changed files with 4 additions and 3 deletions

View File

@@ -10,8 +10,8 @@ define(['forum/accountheader'], function(header) {
showemail: $('#showemailCheckBox').is(':checked') ? 1 : 0
};
socket.emit('api:user.saveSettings', settings, function(success) {
if (success) {
socket.emit('api:user.saveSettings', settings, function(err) {
if (!err) {
app.alertSuccess('Settings saved!');
} else {
app.alertError('There was an error saving settings!');