Template:2011FR/Form-section-radiobuttons-2: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
No edit summary |
||
Line 58: | Line 58: | ||
function resetOther(box){ |
function resetOther(box){ |
||
box.value = "</html>{{ |
box.value = "</html>{{int:donate_interface-other}}<html>"; |
||
box.style.color = "#aaaaaa"; |
box.style.color = "#aaaaaa"; |
||
} |
} |
||
function selectAmount(){ |
function selectAmount(){ |
||
document.getElementById("input_amount_other_box").value = "</html>{{ |
document.getElementById("input_amount_other_box").value = "</html>{{int:donate_interface-other}}<html>"; |
||
document.getElementById("input_amount_other_box").style.color = "#aaaaaa"; |
document.getElementById("input_amount_other_box").style.color = "#aaaaaa"; |
||
} |
} |
||
Line 97: | Line 97: | ||
} |
} |
||
} |
} |
||
if ( form.amountGiven.value != "</html>{{ |
if ( form.amountGiven.value != "</html>{{int:donate_interface-other}}<html>" ) { |
||
var otherAmount = form.amountGiven.value; |
var otherAmount = form.amountGiven.value; |
||
otherAmount = otherAmount.replace(/[,.](\d)$/, '\:$10'); |
otherAmount = otherAmount.replace(/[,.](\d)$/, '\:$10'); |
||
Line 192: | Line 192: | ||
<input type="radio" name="amount" id="input_amount_other" value="" /> |
<input type="radio" name="amount" id="input_amount_other" value="" /> |
||
</html>{{#ifeq:{{{currency-position}}}|before|{{{currency-symbol}}}|}}<html> |
</html>{{#ifeq:{{{currency-position}}}|before|{{{currency-symbol}}}|}}<html> |
||
<input type="text" name="amountGiven" id="input_amount_other_box" size="3" autocomplete="off" value="</html>{{ |
<input type="text" name="amountGiven" id="input_amount_other_box" size="3" autocomplete="off" value="</html>{{int:donate_interface-other}}<html>" onfocus="clearOther(this)"/> |
||
</html>{{#ifeq:{{{currency-position}}}|after|{{{currency-symbol}}}|}}<html> |
</html>{{#ifeq:{{{currency-position}}}|after|{{{currency-symbol}}}|}}<html> |
||
</td> |
</td> |
Revision as of 23:39, 1 November 2011
⧼donate_interface-country-dropdown-{{{country}}}⧽Not your country?