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() { $scope.save = function() {
SettingsService.settings = $scope.settings; SettingsService.settings = $scope.settings;
SettingsService.save(function() { 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; return;
} }
var o = { 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, function() {
} $location.path('/');
SessionService.save(o); });
$location.path('/');
}; };
}); });

View File

@@ -2,8 +2,6 @@
<div class="page-header"> <div class="page-header">
<h1>Profile</h1> <h1>Profile</h1>
</div> </div>
{{user}}
{{profileForm.$valid}}
<form name="profileForm" ng-submit="save()" class="form-horizontal"> <form name="profileForm" ng-submit="save()" class="form-horizontal">
<div class="control-group"> <div class="control-group">
<label class="control-label" for="email">E-mail</label> <label class="control-label" for="email">E-mail</label>