Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Check for success before clearing form. #326

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
mckennapsean merged 5 commits into master from check-for-success
Aug 26, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove extraneous console logging
Cleans up console output. Manual logging can
be added by users themselves as desired.
  • Loading branch information
mckennapsean committed Jun 22, 2019
commit 620bec4d9be352cc85f39cbc4e2dbf8bda546fca
4 changes: 0 additions & 4 deletions form-submission-handler.js
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
formData.formGoogleSend
= form.dataset.email || ""; // no email by default

console.log(formData);
return {data: formData, honeypot};
}

Expand All @@ -79,8 +78,6 @@
// xhr.withCredentials = true;
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.onreadystatechange = function() {
console.log(xhr.status, xhr.statusText);
console.log(xhr.responseText);
if (xhr.readyState === 4 && xhr.status === 200) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

form.reset();
var formElements = form.querySelector(".form-elements")
Expand All @@ -101,7 +98,6 @@
}

function loaded() {
console.log("Contact form submission handler loaded successfully.");
// bind to the submit event of our form
var forms = document.querySelectorAll("form.gform");
for (var i = 0; i < forms.length; i++) {
Expand Down

AltStyle によって変換されたページ (->オリジナル) /