Hey guys I am trying to send a message through form craft plugin but i get this error "jquery.js:4 POST http://www.Myurl.co.uk/wp-admin/admin-ajax.php 504 (Gateway Time-out)" and these details
send @ jquery.js:4
ajax @ jquery.js:4
(anonymous) @ booking_modal.js:3
dispatch @ jquery.js:3
r.handle @ jquery.js:3
But message is sent even if i get 'Ajax fail' error. What should i do? I am looking for a solution but cant figure out one. Also in custom.js:1791 undefined error there is this code. Should i change anything?
jQuery(document).ready(function($) {
/* Show mini cart */
$('#show-mini-cart-button').click(function(event) {
/* Act on the event */
$(this).parent().find('.traveler-cart-mini').toggleClass('open');
return false;
});
$('.i-check').on('ifChanged', function(){
var t = $(this);
setTimeout(function(){ // I GET THE ERROR HERE I THINK
var url = t.data('url');
console.log( url );
if (url) {
window.location.href = url;
}
}, 500);
});
});
I am new to this... If you need any other option please let me know or don't get mad if don't do right question please.. Any ideas would be helpful