Template:2011FR/Form-section-radiobuttons: Difference between revisions

Content deleted Content added
Cbarr (talk | contribs)
No edit summary
Cbarr (talk | contribs)
No edit summary
Line 38:
 
function resetOther(box){
box.value = "</html>{{{donate-amountint:donate_interface-other|<html>Other:</html>}}}<html>";
box.style.color = "#aaaaaa";
}
 
function selectAmount(){
document.getElementById("input_amount_other_box").value = "</html>{{{donate-amountint:donate_interface-other|<html>Other:</html>}}}<html>";
document.getElementById("input_amount_other_box").style.color = "#aaaaaa";
}
Line 77:
}
}
if ( form.amountGiven.value != "</html>{{{donate-amountint:donate_interface-other|<html>Other:</html>}}}<html>" ) {
var otherAmount = form.amountGiven.value;
otherAmount = otherAmount.replace(/[,.](\d)$/, '\:$10');
Line 143:
<input type="radio" name="amount" id="input_amount_other" value="" />
</html>{{#ifeq:{{{currency-position}}}|before|{{{currency-symbol}}}|}}<html>
<input type="text" name="amountGiven" id="input_amount_other_box" size="3" autocomplete="off" value="</html>{{{donate-amountint:donate_interface-other|<html>Other:</html>}}}<html>" onfocus="clearOther(this)"/>
</html>{{#ifeq:{{{currency-position}}}|after|{{{currency-symbol}}}|}}<html>
</td>