more fixes

This commit is contained in:
Baris Soner Usakli
2014-01-16 18:06:19 -05:00
parent e061978bd5
commit 39b631a3a8
8 changed files with 61 additions and 68 deletions

View File

@@ -11,11 +11,10 @@ define(['forum/accountheader'], function(header) {
};
socket.emit('user.saveSettings', settings, function(err) {
if (!err) {
app.alertSuccess('Settings saved!');
} else {
app.alertError('There was an error saving settings!');
if (err) {
return app.alertError('There was an error saving settings!');
}
app.alertSuccess('Settings saved!');
});
return false;
});