JourneyJoker/static/frontend/js/custom-checkout.js

11 lines
448 B
JavaScript
Raw Normal View History

2021-03-01 09:56:10 +00:00
$(document).ready(function(){
if($('#login-tabs').length){
$("#frm_booking :input").prop("disabled", true);
$('#login-tabs :input').prop("disabled", false);
} else {
$("#id_gateway").val("credit-card");
$("#payment-tabs ul.nav.nav-tabs li.nav-item").click(function(event) {
$("#id_gateway").val(event.target.href.slice(event.target.href.indexOf("#tab-") + "#-tab".length));
});
};
});