MediaWiki:Common.js: Difference between revisions

Content deleted Content added
do the slow CheckPaymentOutages last
show amounts changed by JS after they're ready
Line 42:
if ( now > outages[i]['start'] ) {
if ( now < outages[i]['end'] ) {
 
if ( (typeof outages[i]['country'] === 'undefined') || (outages[i]['country'] == country) ) {
$('.paymentmethod-' + outages[i]['method']).hide();
}
 
}
}
Line 320 ⟶ 318:
/* Form functions */
function clearOther(box) {
document.getElementById("input_amount_other").checked = true;
box.value = "";
box.style.color = "#000000";
}
 
Line 330 ⟶ 328:
 
function selectAmount() {
$('#input_amount_other_box').val('');
$('input[name="amountGiven"]').val('');
}
/* End form functions */
Line 381 ⟶ 379:
adjustHPC();
adjustOtherVal();
 
$('.consider-amounts').show();
$('#donate-form-wrapper').show();
 
// Load list of payment outages from meta, and hide any which are current