1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Adjustments for autofill

This commit is contained in:
David Bomba 2022-12-15 18:26:05 +11:00
parent 9d4e57c995
commit 63d0bbb9ae

View File

@ -76,20 +76,20 @@
@push('footer')
<script defer>
$(function() {
var myCard = $('#my-card');
myCard.EXPIRY_USE_DROPDOWNS = true;
// $(function() {
// var myCard = $('#my-card');
// myCard.EXPIRY_USE_DROPDOWNS = true;
document.getElementsByName('expiry-month')[0].setAttribute("x-autocompletetype", "cc-exp-month");
document.getElementsByName('expiry-month')[0].setAttribute("autocompletetype", "cc-exp-month");
document.getElementsByName('expiry-month')[0].setAttribute("autocomplete", "on");
document.getElementsByClassName('expiry')[0].setAttribute("autocomplete", "on");
// document.getElementsByName('expiry-month')[0].setAttribute("x-autocompletetype", "cc-exp-month");
// document.getElementsByName('expiry-month')[0].setAttribute("autocompletetype", "cc-exp-month");
// document.getElementsByName('expiry-month')[0].setAttribute("autocomplete", "on");
// document.getElementsByClassName('expiry')[0].setAttribute("autocomplete", "on");
document.getElementsByName('expiry-year')[0].setAttribute("x-autocompletetype", "cc-exp-year");
document.getElementsByName('expiry-year')[0].setAttribute("autocompletetype", "cc-exp-year");
document.getElementsByName('expiry-year')[0].setAttribute("autocomplete", "on");
// document.getElementsByName('expiry-year')[0].setAttribute("x-autocompletetype", "cc-exp-year");
// document.getElementsByName('expiry-year')[0].setAttribute("autocompletetype", "cc-exp-year");
// document.getElementsByName('expiry-year')[0].setAttribute("autocomplete", "on");
});
// });
</script>
@endpush