Skip to content
Browse files

changes on vps, for new donation sys

  • Loading branch information...
1 parent fb0fb7c commit 4a619d15764ab973fb1c6c8d9ddb054228e2a168 @uberscientist committed Aug 5, 2013
Showing with 9 additions and 2 deletions.
  1. +1 −1 public/index.html
  2. +8 −1 public/js/donate.js
View
2 public/index.html
@@ -154,7 +154,7 @@ <h4 class="modal-title">Donate</h4>
</a>
</div>
<div class="row">
- <b>Address: </b> <span id="address"></span>
+ <b>Address:</b> <span id="address"></span>
</div>
</div>
View
9 public/js/donate.js
@@ -5,7 +5,14 @@ $.ready = function() {
var email = $('#donater-email').val() || '';
var amount = $('#donate-amount').val() || '0.1';
- $.get('/donate-api/address/' + coin_type + '/' + name, function(data) {
+ var donation_data = {
+ name: name,
+ email: email,
+ amount: amount,
+ type: coin_type
+ };
+
+ $.post('/donate-api/address/', donation_data, function(data) {
if(!data.error) {
$('#address').html(data.address);

0 comments on commit 4a619d1

Please sign in to comment.
Something went wrong with that request. Please try again.