Template:2012FR/Form-section/Radiobuttons/Default: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
m hide monthly cancel text also, to avoid confusion
removing some old code
Line 43: Line 43:
document.getElementsByName("amountGiven")[0].value="";
document.getElementsByName("amountGiven")[0].value="";
}
}

//This variable tells the payment processing whether or not this donation is recurring.
// Redundant now - handled by radio buttons with name "frequency"
var monthlyDonation = false;

//This variable tells the page whether or not to display the information for cancelling a monthly payment
var showMonthlyCancel = true;

//This variable tells the page whether or not to display a link to a monthly version of the page
var showMonthlyLink = false;

//This variable tells the page whether or not to display a link to a one-time version of the page
var showOnetimeLink = false;


$(document).ready(function(){
$(document).ready(function(){
// hide frequency options in India, where we can only handle one-time donations
if (document.paypalcontribution.country.value === 'IN') {
if (document.paypalcontribution.country.value === 'IN') {
$("#frequency_onetime").attr('checked', true);
$("#frequency_onetime").attr('checked', true);
Line 79: Line 67:
</div>
</div>
<div id="radiobuttons-table-body">
<div id="radiobuttons-table-body">
<!-- <center> -->
<table id="radiobuttons-table">
<table id="radiobuttons-table">
<tr>
<tr>
Line 119: Line 106:
</tr>
</tr>
</table>
</table>
<!-- </center> -->
</div>
</div>
</html>
</html>

Revision as of 15:02, 28 October 2013

Donation amount: