Browse Source

Re-enabled currency selection

currency
Tobias Herre 4 years ago
parent
commit
0f09df986b
2 changed files with 6 additions and 3 deletions
  1. +2
    -2
      ka.php
  2. +4
    -1
      kaform.js

+ 2
- 2
ka.php View File

@ -222,11 +222,11 @@ Grund für abweichende kontoinhabende Person">
<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>

+ 4
- 1
kaform.js 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;
}
}

Loading…
Cancel
Save