forked from Archives/Athou_commafeed
remove debug infos
This commit is contained in:
@@ -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('/');
|
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user