Fixed post method
This commit is contained in:
@@ -149,8 +149,8 @@ app.controller("appleditController", editor("/applications"));
|
||||
|
||||
app.controller("addManyController", function($scope, $http, $location) {
|
||||
$scope.memberData = '';
|
||||
$scope.sendCSV = function($scope.memberData){
|
||||
$http.post("/members/api/csvimport").then(
|
||||
$scope.sendCSV = function(memberData) {
|
||||
$http.post("/members/api/csvimport", memberData).then(
|
||||
function(response) {
|
||||
notySuccess("Lähetys onnistui");
|
||||
$location.path("/addmany");
|
||||
|
||||
Reference in New Issue
Block a user