Fixed mass import js

This commit is contained in:
HooVee
2016-08-25 19:53:01 +03:00
parent 96c299c269
commit a715d2db95
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -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>
+2 -2
View File
@@ -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");