change some socket calls to use the callback, when user changes their email if they are using a gravatar picture it will be updated too, fixed email updating

This commit is contained in:
Baris Soner Usakli
2013-07-30 18:30:43 -04:00
parent 235553eaf6
commit 3f6f4e347d
10 changed files with 251 additions and 168 deletions

View File

@@ -9,7 +9,13 @@ $(document).ready(function() {
showemail: $('#showemailCheckBox').is(':checked')?1:0
};
socket.emit('api:user.saveSettings', settings);
socket.emit('api:user.saveSettings', settings, function(success) {
if(success) {
app.alertSuccess('Settings saved!');
} else {
app.alertError('There was an error saving settings!');
}
});
return false;
});