Fixed post method

This commit is contained in:
HooVee
2016-08-25 19:35:48 +03:00
parent 7ece10ff8a
commit 96c299c269
+2 -2
View File
@@ -149,8 +149,8 @@ app.controller("appleditController", editor("/applications"));
app.controller("addManyController", function($scope, $http, $location) { app.controller("addManyController", function($scope, $http, $location) {
$scope.memberData = ''; $scope.memberData = '';
$scope.sendCSV = function($scope.memberData){ $scope.sendCSV = function(memberData) {
$http.post("/members/api/csvimport").then( $http.post("/members/api/csvimport", memberData).then(
function(response) { function(response) {
notySuccess("Lähetys onnistui"); notySuccess("Lähetys onnistui");
$location.path("/addmany"); $location.path("/addmany");