Browse Source

Re-enabled currency selection

currency
Tobias Herre 2 years ago
parent
commit
0f09df986b
  1. 4
      ka.php
  2. 5
      kaform.js

4
ka.php

@ -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>

5
kaform.js

@ -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;
}
}

Loading…
Cancel
Save