Fixed mass import js
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<h1> Lisää useampi jäsen </h1>
|
||||
|
||||
<div class="container">
|
||||
<form name="memberTextForm">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<textarea ng-model="memberData" rows="20" cols="120"></textarea>
|
||||
@@ -11,4 +12,5 @@
|
||||
<button ng-click="sendCSV()" type="submit" class="btn btn-success" id="sendMembers">Lähetä</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -149,8 +149,8 @@ app.controller("appleditController", editor("/applications"));
|
||||
|
||||
app.controller("addManyController", function($scope, $http, $location) {
|
||||
$scope.memberData = '';
|
||||
$scope.sendCSV = function(memberData) {
|
||||
$http.post("/members/api/csvimport", memberData).then(
|
||||
$scope.sendCSV = function() {
|
||||
$http.post("/members/api/csvimport", $scope.memberData).then(
|
||||
function(response) {
|
||||
notySuccess("Lähetys onnistui");
|
||||
$location.path("/addmany");
|
||||
|
||||
Reference in New Issue
Block a user