Skip to content

Commit

Permalink
Merge branch 'master' of github.com:uberscientist/bitstarter
Browse files Browse the repository at this point in the history
  • Loading branch information
uberscientist committed Aug 6, 2013
2 parents 239a8af + 4a619d1 commit b0dde43
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Expand Up @@ -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>

Expand Down
9 changes: 8 additions & 1 deletion public/js/donate.js
Expand Up @@ -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);
Expand Down

0 comments on commit b0dde43

Please sign in to comment.