Fixed mass import js
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
<h1> Lisää useampi jäsen </h1>
|
<h1> Lisää useampi jäsen </h1>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
<form name="memberTextForm">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-4">
|
<div class="col-sm-4">
|
||||||
<textarea ng-model="memberData" rows="20" cols="120"></textarea>
|
<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>
|
<button ng-click="sendCSV()" type="submit" class="btn btn-success" id="sendMembers">Lähetä</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -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(memberData) {
|
$scope.sendCSV = function() {
|
||||||
$http.post("/members/api/csvimport", memberData).then(
|
$http.post("/members/api/csvimport", $scope.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