Permalink
Browse files

Merge branch 'master' of github.com:uberscientist/bitstarter

  • Loading branch information...
2 parents 239a8af + 4a619d1 commit b0dde43977f0ede59ad6ac186285e9625eb990d5 @uberscientist committed Aug 6, 2013
Showing with 9 additions and 2 deletions.
  1. +1 −1 public/index.html
  2. +8 −1 public/js/donate.js
View
@@ -159,7 +159,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
@@ -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 b0dde43

Please sign in to comment.