Fix broken redirect in member addition
This commit is contained in:
@@ -210,12 +210,14 @@ app.controller("getController", function($scope, $document, $http){
|
||||
});
|
||||
|
||||
/* Controller for adding a member */
|
||||
app.controller("postController", function($scope, $http, $location) {
|
||||
app.controller("postController", function($scope, $http, $location, $window) {
|
||||
$scope.member = {};
|
||||
$scope.send = function() {
|
||||
$http.post("/members/api/member/", $scope.member).then(function(response){
|
||||
notySuccess("Jäsen lisätty!");
|
||||
$window.location = "/members/list";
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user