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*"/> <input id="a_amount" type="text" name="amount" placeholder="Betrag*"/>
</div> </div>
<div class="is-col"> <div class="is-col">
<select disabled id="a_currency" name="currency" > <select id="a_currency" name="currency" >
<option value="EUR">EUR</option> <option value="EUR">EUR</option>
<option value="USD">USD</option> <option value="USD">USD</option>
<option value="CHF">CHF</option> <option value="CHF">CHF</option>
<option value="BTC">BTC</option> <option value="XBT">XBT</option>
</select> </select>
<!-- <input id="a_currency" type="text" name="curreny" placeholder="Waehrung*"/> --> <!-- <input id="a_currency" type="text" name="curreny" placeholder="Waehrung*"/> -->
</div> </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() function disableCurrency()
{ {
if (countRows()>0){ if (countRows()>0){
document.getElementById("a_currency").disabled=true; document.getElementById("a_currency").disabled=true;
} }
else { else {
document.getElementById("a_currency").disabled=true; document.getElementById("a_currency").disabled=false;
} }
} }