JourneyJoker/static/frontend/js/custom-checkout.js
2020-01-26 11:53:25 +01:00

11 lines
No EOL
448 B
JavaScript

$(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));
});
};
});