Skip to content
This repository was archived by the owner on Nov 2, 2019. It is now read-only.

Commit 76de039

Browse files
committed
q#
1 parent bd083bf commit 76de039

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

app/js/controllers/entry-ctrl.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,14 @@ angular
5858

5959
$scope.addToMailingList = function(person) {
6060
var access_token = 'f234e56583e242b25e3f76a7fe4e4789ab98ed0c';
61-
var mailtrain_url = 'http://mailtrain.tnyu.org/api/subscribe/HJNc8AuSz'
61+
var mailtrain_url = 'http://mailtrain.tnyu.org/api/subscribe/HJNc8AuSz';
6262

6363
$http({
64-
method : 'POST',
64+
method: 'POST',
6565
crossDomain: true,
66-
url : mailtrain_url + '?access_token=' + access_token,
67-
data:
68-
{
69-
'EMAIL': person.attributes.contact.email,
70-
'REQUIRE_CONFIRMATION': 'yes'
71-
}
72-
})
73-
.success(function(response) {
66+
url: mailtrain_url + '?access_token=' + access_token,
67+
data: { 'EMAIL': person.attributes.contact.email, 'REQUIRE_CONFIRMATION': 'yes' }
68+
}).success(function(response) {
7469
alert('success! – ' + response.data.id)
7570
})
7671
};

0 commit comments

Comments
 (0)