remove debug infos

This commit is contained in:
Athou
2013-04-13 12:45:52 +02:00
parent 6739166b04
commit c2ecaed0af
2 changed files with 8 additions and 10 deletions

View File

@@ -553,8 +553,7 @@ module.controller('SettingsCtrl', function($scope, $location, SettingsService) {
$scope.save = function() {
SettingsService.settings = $scope.settings;
SettingsService.save(function() {
window.location.href = window.location.href.substring(0,
window.location.href.lastIndexOf('#'));
});
};
});
@@ -570,13 +569,14 @@ module.controller('ProfileCtrl', function($scope, $location, SessionService) {
return;
}
var o = {
email : $scope.user.email
email : $scope.user.email,
password : $scope.user.password
};
if ($scope.user.password == $scope.password_c) {
o.password = $scope.user.password;
}
SessionService.save(o);
$location.path('/');
SessionService.save(o, function() {
$location.path('/');
});
};
});