Template:2011FR/Form-section-radiobuttons-4: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
No edit summary |
||
(41 intermediate revisions by the same user not shown) | |||
Line 114: | Line 114: | ||
} |
} |
||
} |
} |
||
if ( form. |
if ( form.input_amount_other_box.value != "</html>{{int:donate_interface-other}}<html>" ) { |
||
var otherAmount = form. |
var otherAmount = form.input_amount_other_box.value; |
||
otherAmount = otherAmount.replace(/[,.](\d)$/, '\:$10'); |
otherAmount = otherAmount.replace(/[,.](\d)$/, '\:$10'); |
||
otherAmount = otherAmount.replace(/[,.](\d)(\d)$/, '\:$1$2'); |
otherAmount = otherAmount.replace(/[,.](\d)(\d)$/, '\:$1$2'); |
||
otherAmount = otherAmount.replace(/[\$,.]/g, ''); |
otherAmount = otherAmount.replace(/[\$,.]/g, ''); |
||
otherAmount = otherAmount.replace(/:/, '.'); |
otherAmount = otherAmount.replace(/:/, '.'); |
||
form.input_amount_other_box.value = otherAmount; |
|||
form.amountGiven.value = otherAmount; |
form.amountGiven.value = otherAmount; |
||
amount = otherAmount; |
amount = otherAmount; |
||
Line 139: | Line 140: | ||
} |
} |
||
function triggerClick(elem){ |
|||
$('#' + elem + '-container-contained').show(); |
|||
} |
|||
function loadCountry(){ |
|||
//alert(window.location); |
|||
//var newPage = window.location.value; |
|||
//newCountry = $("#currency-select").value; |
|||
//newPage.replace("</html>{{{country}}}<html>",newCountry); |
|||
//alert(newPage); |
|||
//window.location = newPage; |
|||
//return false; |
|||
} |
|||
</script> |
</script> |
||
⚫ | |||
<div> |
<div> |
||
<div id="radiobuttons-table-header"> |
<div id="radiobuttons-table-header"> |
||
</html>{{int:donate_interface-amount-legend}} |
</html>{{int:donate_interface-amount-legend}} {{{currency-symbol}}}<html> |
||
</div> |
</div> |
||
</div> |
</div> |
||
⚫ | |||
<span class="collapsible-container-trigger" id="country-container-trigger"></html>{{int:donate_interface-country-dropdown-{{{country}}}}}<html> not your country?</span><br/> |
|||
⚫ | |||
⚫ | |||
<option value="US" selected>USD – $</option> |
|||
<option value="GB">GBP – £</option> |
|||
<option value="FR">EUR – €</option> |
|||
<option value="AU">AUD – $</option> |
|||
<option value="CA">CAD – $</option> |
|||
<option value="CH">CHF – Fr.</option> |
|||
<option value="CZ">CZK – Kč</option> |
|||
<option value="DK">DKK – kr</option> |
|||
<option value="HK">HKD – HK$</option> |
|||
<option value="HU">HUF – Ft</option> |
|||
<option value="IL">ILS – ₪</option> |
|||
<option value="JP">JPY – ¥</option> |
|||
<option value="NO">NOK – kr</option> |
|||
<option value="NZ">NZD – $</option> |
|||
<option value="PL">PLN – zł</option> |
|||
<option value="SE">SEK – kr</option> |
|||
<option value="SG">SGD – S$</option> |
|||
⚫ | |||
⚫ | |||
--> |
--> |
||
<div> |
|||
<div id="radiobuttons-table-header"> |
|||
</html>{{int:donate_interface-amount-legend}}<html> </html>{{2011FR/core-currency-symbol|{{2011FR/core-currency-code|{{{country}}}}}}}<html> |
|||
</div> |
|||
<div class="collapsible-container-trigger" id="country-container" style="display: none; cursor: pointer;" onclick="triggerClick('country');"> |
|||
<span style="font-weight: bold; font-size: 1.2em"></html>{{2011FR/core-currency-symbol|{{2011FR/core-currency-code|{{{country}}}}}}}<html></span><span style="font-size: 0.6em">(Change?)</span> |
|||
<br/> |
|||
⚫ | |||
⚫ | |||
<option value="</hmtl>{{{country}}}<html>" selected></html>{{2011FR/core-currency-code|{{{country}}}}}<html> – </html>{{2011FR/core-currency-symbol|{{2011FR/core-currency-code|{{{country}}}}}}}<html></option> |
|||
</html>{{#tag:html|{{#ifeq:{{2011FR/core-currency-code|{{{country}}}}}|USD||<option value="USD">USD – $</option>}}}}<html> |
|||
</html>{{#tag:html|{{#ifeq:{{2011FR/core-currency-code|{{{country}}}}}|EUR||<option value="EUR">EUR – €</option>}}}}<html> |
|||
⚫ | |||
⚫ | |||
</div> |
|||
</div> |
|||
<div id="radiobuttons-table-body"> |
<div id="radiobuttons-table-body"> |
||
<!-- <center> --> |
<!-- <center> --> |
||
Line 209: | Line 215: | ||
</td> |
</td> |
||
<td class="amount-table-cell"> |
<td class="amount-table-cell"> |
||
<input type="radio" name="amount" id="input_amount_other" value="" /><input type="text |
<input type="radio" name="amount" id="input_amount_other" value="" /><input type="text" id="input_amount_other_box" size="3" autocomplete="off" value="</html>{{int:donate_interface-other}}<html>" onfocus="clearOther(this)"/> |
||
</td> |
</td> |
||
</tr> |
</tr> |
Latest revision as of 19:43, 6 November 2011