fix(stikyHeader): fix #2904

This commit is contained in:
Matteo Pagliazzi
2014-03-06 14:47:35 +01:00
parent 1968a22c04
commit acb31b99ad
+4 -2
View File
@@ -16,8 +16,10 @@ habitrpg.controller('SettingsCtrl',
// }
$scope.toggleStickyHeader = function(){
$rootScope.$on('userSynced', function(){
window.location.reload();
});
User.set({"preferences.stickyHeader":!User.user.preferences.stickyHeader});
$timeout(function(){window.location.reload()});
}
$scope.showTour = function(){
@@ -48,7 +50,7 @@ habitrpg.controller('SettingsCtrl',
$scope.changeLanguage = function(){
$rootScope.$on('userSynced', function(){
location.reload();
window.location.reload();
});
User.set({'preferences.language': $scope.language.code});
}