1
0
Fork 0

Re-enabled currency selection

This commit is contained in:
Tobias Herre 2020-09-22 12:53:39 +00:00
parent 24a4ffd52c
commit 0f09df986b
2 changed files with 6 additions and 3 deletions

4
ka.php
View File

@ -222,11 +222,11 @@ Grund für abweichende kontoinhabende Person"></textarea>
<input id="a_amount" type="text" name="amount" placeholder="Betrag*"/>
</div>
<div class="is-col">
<select disabled id="a_currency" name="currency" >
<select id="a_currency" name="currency" >
<option value="EUR">EUR</option>
<option value="USD">USD</option>
<option value="CHF">CHF</option>
<option value="BTC">BTC</option>
<option value="XBT">XBT</option>
</select>
<!-- <input id="a_currency" type="text" name="curreny" placeholder="Waehrung*"/> -->
</div>

View File

@ -35,13 +35,16 @@ function isFloat(val) {
}
/**
* grey-out currency iselection if there is at least one document is atatched.
*/
function disableCurrency()
{
if (countRows()>0){
document.getElementById("a_currency").disabled=true;
}
else {
document.getElementById("a_currency").disabled=true;
document.getElementById("a_currency").disabled=false;
}
}