Fix broken redirect in member addition

This commit is contained in:
okalintu
2017-03-08 17:40:50 +02:00
parent 08b4c17044
commit e3147c3ef9
+3 -1
View File
@@ -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";
});
}
});