⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
muhasebe
/
public
/
module
/
booking
/
js
/
Edit File: checkout.js
(function ($) { new Vue({ el:'#bravo-checkout-page', data:{ onSubmit:false, message:{ content:'', type:false } }, methods:{ doCheckout(){ var me = this; if(this.onSubmit) return false; if(!this.validate()) return false; this.onSubmit = true; $.ajax({ url:bookingCore.routes.checkout, data:$('.booking-form').find('input,textarea,select').serialize(), method:"post", success:function (res) { if(!res.status && !res.url){ me.onSubmit = false; } if(res.elements){ for(var k in res.elements){ $(k).html(res.elements[k]); } } if(res.message) { me.message.content = res.message; me.message.type = res.status; } if(res.url){ window.location.href = res.url } if(res.errors && typeof res.errors == 'object') { var html = ''; for(var i in res.errors){ html += res.errors[i]+'<br>'; } me.message.content = html; } if(typeof BravoReCaptcha != "undefined"){ BravoReCaptcha.reset('booking'); } }, error:function (e) { me.onSubmit = false; if(e.responseJSON){ me.message.content = e.responseJSON.message ? e.responseJSON.message : 'Can not booking'; me.message.type = false; }else{ if(e.responseText){ me.message.content = e.responseText; me.message.type = false; } } if(typeof BravoReCaptcha != "undefined"){ BravoReCaptcha.reset('booking'); } } }) }, validate(){ return true; } } }) })(jQuery) $('#confirmRegister').change(function() { if( $(this).prop('checked')) { $('#confirmRegisterContent').removeClass('d-none'); }else { $('#confirmRegisterContent').addClass('d-none'); } });
Simpan