Update: Currency (Network) - open proposal details in new tab

This commit is contained in:
andyfreer 2016-11-14 14:01:17 +00:00
parent 6211f7958b
commit 9a208b47a7

View file

@ -141,7 +141,6 @@ description: pages.currency.description
}); });
}); });
// Get the current number of masternodes. // Get the current number of masternodes.
$.ajax({ $.ajax({
url: "{{ site.api }}/masternodes/stats/" url: "{{ site.api }}/masternodes/stats/"
@ -155,7 +154,6 @@ description: pages.currency.description
$("#masternodes_max").text(masternodes_max); $("#masternodes_max").text(masternodes_max);
}); });
// Get the budget proposals // Get the budget proposals
$.ajax({ $.ajax({
url: "{{ site.api }}/budgets/" url: "{{ site.api }}/budgets/"
@ -173,14 +171,11 @@ description: pages.currency.description
amount_monthly = formatCurrency(proposal.monthly_amount) amount_monthly = formatCurrency(proposal.monthly_amount)
will_be_funded = proposal.will_be_funded ? "yes" : "no"; will_be_funded = proposal.will_be_funded ? "yes" : "no";
$("#budgets>tbody").append('<tr><td data-header="Title"><a href="' + url + '" target="_blank">' + title + '</a></td><td data-header="Owner">' + owner + '</td><td data-header="Votes (yes/no)">' + votes_yes + '/' + votes_no + '</td><td data-header="Votes Required">' + required_votes + '</td><td data-header="Monthly Amount">' + amount_monthly + '</td><td data-header="Will be Funded">' + will_be_funded + '</td></tr>');
$("#budgets>tbody").append('<tr><td data-header="Title"><a href="' + url + '">' + title + '</a></td><td data-header="Owner">' + owner + '</td><td data-header="Votes (yes/no)">' + votes_yes + '/' + votes_no + '</td><td data-header="Votes Required">' + required_votes + '</td><td data-header="Monthly Amount">' + amount_monthly + '</td><td data-header="Will be Funded">' + will_be_funded + '</td></tr>');
}); });
}); });
// Get the blockchain info // Get the blockchain info
$.ajax({ $.ajax({
url: "{{ site.api }}/chain/latestBlocks/" url: "{{ site.api }}/chain/latestBlocks/"