Merge branch 'master' of bitbucket.org:venbainformationtechnology/golf_backend
This commit is contained in:
commit
4d4b67b657
@ -562,7 +562,7 @@ $web_payment_sdk_url = $_ENV["ENVIRONMENT"] === Environment::PRODUCTION ? "https
|
|||||||
|
|
||||||
<script type="text/javascript" src="<?= base_url(); ?>public/square-js/sq-payment-flow.js"></script>
|
<script type="text/javascript" src="<?= base_url(); ?>public/square-js/sq-payment-flow.js"></script>
|
||||||
|
|
||||||
<script>
|
<!-- <script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$("#card-button").removeAttr('disabled');
|
$("#card-button").removeAttr('disabled');
|
||||||
$('.js-example-basic-single').select2();
|
$('.js-example-basic-single').select2();
|
||||||
@ -615,8 +615,61 @@ $web_payment_sdk_url = $_ENV["ENVIRONMENT"] === Environment::PRODUCTION ? "https
|
|||||||
$('#pincode').keyup(function() {$('#pincode_span_message').html(''); if($('#pincode').val().length == 0){uncheck() }});
|
$('#pincode').keyup(function() {$('#pincode_span_message').html(''); if($('#pincode').val().length == 0){uncheck() }});
|
||||||
|
|
||||||
function uncheck(){ $('#rememberMe').prop('checked', false); $(".payment-title").css('display','none'); $("#fast-checkout").css('display','none'); }
|
function uncheck(){ $('#rememberMe').prop('checked', false); $(".payment-title").css('display','none'); $("#fast-checkout").css('display','none'); }
|
||||||
</script>
|
</script> -->
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
//$("#card-button").removeAttr('disabled');
|
||||||
|
$('#card-button').prop("disabled", true);
|
||||||
|
$('.js-example-basic-single').select2();
|
||||||
|
// $("#fast-checkout").css('display','none');
|
||||||
|
// $(".payment-title").css('display','none');
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#card-button').click(function() {
|
||||||
|
// $('#card-button').prop("disabled", true);
|
||||||
|
// $('#loading-spinner-overlay').css('visibility', 'visible');
|
||||||
|
// $('#card-button').prop("disabled", true);
|
||||||
|
// $('#loading-spinner-overlay').css('visibility', 'visible');
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
$('#rememberMe').click(function() {
|
||||||
|
if ($(this).is(':checked')) {
|
||||||
|
ValidateForm();
|
||||||
|
}else {
|
||||||
|
$('#card-button').prop("disabled", true);
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
function ValidateForm() {
|
||||||
|
var formInvalid = false;
|
||||||
|
$('#member_address input').each(function() {
|
||||||
|
if ($(this).val() === '') {
|
||||||
|
var id = $(this).attr('id');
|
||||||
|
var input_id = id+'_span_message';
|
||||||
|
|
||||||
|
$('#'+input_id+'').html('input required').css('color','red');
|
||||||
|
formInvalid = true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if (formInvalid)
|
||||||
|
{ $('#rememberMe').prop('checked', false);}
|
||||||
|
else{ $("#card-button").removeAttr('disabled'); }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$('#first_name').keyup(function() {$('#first_name_span_message').html(''); if($('#first_name').val().length == 0){uncheck() }});
|
||||||
|
$('#last_name').keyup(function() {$('#last_name_span_message').html(''); if($('#last_name').val().length == 0){uncheck() }});
|
||||||
|
$('#address').keyup(function() {$('#address_span_message').html(''); if($('#address').val().length == 0){uncheck() } });
|
||||||
|
$('#state').keyup(function() {$('#state_span_message').html(''); if($('#state').val().length == 0){uncheck() }});
|
||||||
|
$('#city').keyup(function() { $('#city_span_message').html('');if($('#city').val().length == 0){uncheck() }});
|
||||||
|
$('#country').keyup(function() {$('#country_span_message').html(''); if($('#country').val().length == 0){uncheck() }});
|
||||||
|
$('#pincode').keyup(function() {$('#pincode_span_message').html(''); if($('#pincode').val().length == 0){uncheck() }});
|
||||||
|
|
||||||
|
function uncheck(){ $('#rememberMe').prop('checked', false); $('#card-button').prop("disabled", true); }
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user