Fixed post method
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user