mirror of
https://github.com/spacedeck/spacedeck-open.git
synced 2025-12-17 02:17:30 +01:00
WIP first partially working version without mongodb, using sqlite/sequelize
This commit is contained in:
@@ -36,13 +36,11 @@ SpacedeckAccount = {
|
||||
|
||||
save_user_language: function(lang) {
|
||||
localStorage.lang = lang;
|
||||
if (this.user.preferences) {
|
||||
this.user.preferences.language = lang;
|
||||
this.save_user(function() {
|
||||
window._spacedeck_location_change = true;
|
||||
location.href="/spaces";
|
||||
}.bind(this));
|
||||
}
|
||||
this.user.prefs_language = lang;
|
||||
this.save_user(function() {
|
||||
window._spacedeck_location_change = true;
|
||||
location.href="/spaces";
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
save_user: function(on_success) {
|
||||
|
||||
Reference in New Issue
Block a user