feedback to user

master
Matt Huntington 9 years ago
parent 634d5ea0b0
commit f2e0246cc0

@ -115,9 +115,9 @@
}).then((data)=>{ }).then((data)=>{
console.log(JSON.parse(data)); console.log(JSON.parse(data));
if(JSON.parse(data).status == 200){ if(JSON.parse(data).status == 200){
console.log('yay'); $('#submit').parent().text('Your message has been sent! Please wait to hear back from us.');
} else { } else {
console.log('boo'); $('#submit').val('Some thing went wrong. Try again').addClass('special');
} }
}); });
}) })

Loading…
Cancel
Save