remove all references
This commit is contained in:
parent
fa8569f0c5
commit
c443b97c19
1 changed files with 7 additions and 7 deletions
|
|
@ -69,7 +69,7 @@ class AmountInput {
|
||||||
amountArea.appendChild(btcAmount);
|
amountArea.appendChild(btcAmount);
|
||||||
|
|
||||||
this.eurInput.addEventListener('blur', () => {
|
this.eurInput.addEventListener('blur', () => {
|
||||||
this.validateAndFormatEurAmountInput(this.eurInput);
|
this.validateAndFormatEurAmountInput();
|
||||||
this.updateBtcInput();
|
this.updateBtcInput();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -99,16 +99,16 @@ class AmountInput {
|
||||||
return cleanInputNumber;
|
return cleanInputNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
validateAndFormatEurAmountInput(eurAmountInput) {
|
validateAndFormatEurAmountInput() {
|
||||||
const cleanInputNumber = this.intEurAmount;
|
const cleanInputNumber = this.intEurAmount;
|
||||||
eurAmountInput.classList.remove('input-is-valid', 'input-is-invalid');
|
this.eurInput.classList.remove('input-is-valid', 'input-is-invalid');
|
||||||
if (cleanInputNumber) {
|
if (cleanInputNumber) {
|
||||||
eurAmountInput.value = formatNumberWithSpaces(cleanInputNumber);
|
this.eurInput.value = formatNumberWithSpaces(cleanInputNumber);
|
||||||
eurAmountInput.classList.add('input-is-valid');
|
this.eurInput.classList.add('input-is-valid');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
eurAmountInput.classList.add('input-is-invalid');
|
this.eurInput.classList.add('input-is-invalid');
|
||||||
}
|
}
|
||||||
|
|
||||||
updateBtcInput() {
|
updateBtcInput() {
|
||||||
|
|
@ -259,7 +259,7 @@ function offersPage() {
|
||||||
const wants = buyOrSellButtonGroup.wants();
|
const wants = buyOrSellButtonGroup.wants();
|
||||||
|
|
||||||
const premium = premiumSelector.getPremium();
|
const premium = premiumSelector.getPremium();
|
||||||
const trade_amount_eur = eurAmountInput.value;
|
const trade_amount_eur = amountInput.intEurAmount;
|
||||||
const location_details = placeInput.value;
|
const location_details = placeInput.value;
|
||||||
const time_availability_details = timeInput.value;
|
const time_availability_details = timeInput.value;
|
||||||
const is_onchain_accepted = onchainCheckbox.checked;
|
const is_onchain_accepted = onchainCheckbox.checked;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue