mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Adjustments for cardjs and auto filil
This commit is contained in:
parent
9b1cc121cd
commit
1dc24bb734
@ -52,3 +52,23 @@
|
|||||||
|
|
||||||
<script src="{{ asset('js/clients/payment_methods/authorize-authorize-card.js') }}"></script>
|
<script src="{{ asset('js/clients/payment_methods/authorize-authorize-card.js') }}"></script>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('footer')
|
||||||
|
<script defer>
|
||||||
|
|
||||||
|
$(function() {
|
||||||
|
|
||||||
|
document.getElementsByClassName("expiry")[0].addEventListener('change', function() {
|
||||||
|
|
||||||
|
str = document.getElementsByClassName("expiry")[0].value.replace(/\s/g, '');
|
||||||
|
const expiryArray = str.split("/");
|
||||||
|
|
||||||
|
document.getElementsByName('expiry-month')[0].value = expiryArray[0];
|
||||||
|
document.getElementsByName('expiry-year')[0].value = expiryArray[1];
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
@endpush
|
@ -78,30 +78,15 @@
|
|||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
|
|
||||||
document.getElementsByClassName("expiry")[0].addEventListener('change', function() {
|
document.getElementsByClassName("expiry")[0].addEventListener('change', function() {
|
||||||
|
|
||||||
str = document.getElementsByClassName("expiry")[0].value.replace(/\s/g, '');
|
str = document.getElementsByClassName("expiry")[0].value.replace(/\s/g, '');
|
||||||
const myArray = str.split("/");
|
const expiryArray = str.split("/");
|
||||||
|
|
||||||
document.getElementsByName('expiry-month')[0].value = myArray[0];
|
document.getElementsByName('expiry-month')[0].value = expiryArray[0];
|
||||||
document.getElementsByName('expiry-year')[0].value = myArray[1];
|
document.getElementsByName('expiry-year')[0].value = expiryArray[1];
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 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-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");
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -49,3 +49,23 @@
|
|||||||
|
|
||||||
<script src="{{ asset('js/clients/payments/forte-credit-card-payment.js') }}"></script>
|
<script src="{{ asset('js/clients/payments/forte-credit-card-payment.js') }}"></script>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('footer')
|
||||||
|
<script defer>
|
||||||
|
|
||||||
|
$(function() {
|
||||||
|
|
||||||
|
document.getElementsByClassName("expiry")[0].addEventListener('change', function() {
|
||||||
|
|
||||||
|
str = document.getElementsByClassName("expiry")[0].value.replace(/\s/g, '');
|
||||||
|
const expiryArray = str.split("/");
|
||||||
|
|
||||||
|
document.getElementsByName('expiry-month')[0].value = expiryArray[0];
|
||||||
|
document.getElementsByName('expiry-year')[0].value = expiryArray[1];
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
@endpush
|
@ -49,3 +49,23 @@
|
|||||||
@section('gateway_footer')
|
@section('gateway_footer')
|
||||||
<script src="{{ asset('js/clients/payments/wepay-credit-card.js') }}"></script>
|
<script src="{{ asset('js/clients/payments/wepay-credit-card.js') }}"></script>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('footer')
|
||||||
|
<script defer>
|
||||||
|
|
||||||
|
$(function() {
|
||||||
|
|
||||||
|
document.getElementsByClassName("expiry")[0].addEventListener('change', function() {
|
||||||
|
|
||||||
|
str = document.getElementsByClassName("expiry")[0].value.replace(/\s/g, '');
|
||||||
|
const expiryArray = str.split("/");
|
||||||
|
|
||||||
|
document.getElementsByName('expiry-month')[0].value = expiryArray[0];
|
||||||
|
document.getElementsByName('expiry-year')[0].value = expiryArray[1];
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
@endpush
|
@ -81,3 +81,23 @@
|
|||||||
|
|
||||||
<script src="{{ asset('js/clients/payments/wepay-credit-card.js') }}"></script>
|
<script src="{{ asset('js/clients/payments/wepay-credit-card.js') }}"></script>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('footer')
|
||||||
|
<script defer>
|
||||||
|
|
||||||
|
$(function() {
|
||||||
|
|
||||||
|
document.getElementsByClassName("expiry")[0].addEventListener('change', function() {
|
||||||
|
|
||||||
|
str = document.getElementsByClassName("expiry")[0].value.replace(/\s/g, '');
|
||||||
|
const expiryArray = str.split("/");
|
||||||
|
|
||||||
|
document.getElementsByName('expiry-month')[0].value = expiryArray[0];
|
||||||
|
document.getElementsByName('expiry-year')[0].value = expiryArray[1];
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
@endpush
|
Loading…
x
Reference in New Issue
Block a user