minor bug fix
This commit is contained in:
parent
14c336b32e
commit
cb756b26f9
@ -1002,11 +1002,13 @@
|
|||||||
getRef('deposit_interest_rate').textContent = (I_s * 100).toFixed(2)
|
getRef('deposit_interest_rate').textContent = (I_s * 100).toFixed(2)
|
||||||
// checks if there is transaction pending, if so then shows warning
|
// checks if there is transaction pending, if so then shows warning
|
||||||
checkIfAllowed('deposit')
|
checkIfAllowed('deposit')
|
||||||
|
checkTouchSupport(window.matchMedia("(any-hover: hover)"))
|
||||||
break;
|
break;
|
||||||
case 'loan':
|
case 'loan':
|
||||||
const { I_b } = bank_app.getRates()
|
const { I_b } = bank_app.getRates()
|
||||||
getRef('loan_interest_rate').textContent = (I_b * 100).toFixed(2)
|
getRef('loan_interest_rate').textContent = (I_b * 100).toFixed(2)
|
||||||
checkIfAllowed('loan')
|
checkIfAllowed('loan')
|
||||||
|
checkTouchSupport(window.matchMedia("(any-hover: hover)"))
|
||||||
break;
|
break;
|
||||||
case 'transaction':
|
case 'transaction':
|
||||||
showTransactionDetails(params)
|
showTransactionDetails(params)
|
||||||
@ -1839,7 +1841,7 @@
|
|||||||
getRef('loan_form').removeEventListener('submit', confirmLoan)
|
getRef('loan_form').removeEventListener('submit', confirmLoan)
|
||||||
}
|
}
|
||||||
getRef('deposit_form')?.elementsChanged()
|
getRef('deposit_form')?.elementsChanged()
|
||||||
getRef('loan_form')?.elementsChanged()
|
getRef('loan_form') ??.elementsChanged()
|
||||||
}
|
}
|
||||||
window.matchMedia("(any-hover: hover)").addEventListener('change', checkTouchSupport);
|
window.matchMedia("(any-hover: hover)").addEventListener('change', checkTouchSupport);
|
||||||
|
|
||||||
@ -2046,7 +2048,6 @@
|
|||||||
document.querySelectorAll('.admin-option').forEach(option => option.classList.add('hide-completely'))
|
document.querySelectorAll('.admin-option').forEach(option => option.classList.add('hide-completely'))
|
||||||
document.querySelectorAll('.user-option').forEach(option => option.classList.remove('hide-completely'))
|
document.querySelectorAll('.user-option').forEach(option => option.classList.remove('hide-completely'))
|
||||||
}
|
}
|
||||||
checkTouchSupport(window.matchMedia("(any-hover: hover)"))
|
|
||||||
if (window.location.hash.includes('sign_in') || window.location.hash.includes('sign_up')) {
|
if (window.location.hash.includes('sign_in') || window.location.hash.includes('sign_up')) {
|
||||||
window.location.hash = ''
|
window.location.hash = ''
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user