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

Conversation

@mckennapsean
Copy link
Collaborator

@mckennapsean mckennapsean commented May 26, 2019

Builds on work from #315 to get the changes we can use onto master.

tarasyarema reacted with thumbs up emoji
Thanks to @tarasyarema for discovering the fix for this.
Originally pulled from PR #315. Makes sure that the
XHR request is completed and successful before clearing
and hiding the form.
Cleans up console output. Manual logging can
be added by users themselves as desired.
Removed as part of another PR, but I forgot to
remove the unused function. It just checks if there
is a value and returns the result of that if statement,
with unnecessary logging, so clean that all up.
Copy link
Collaborator Author

Addressed the merge conflicts, and did some code cleanup in the last two commits (removed another console log statement, and removed a function no longer used).

nelsonic reacted with thumbs up emoji

@mckennapsean mckennapsean merged commit d0750f8 into master Aug 26, 2019
varthankYouMessage=form.querySelector(".thankyou_message");
if(thankYouMessage){
thankYouMessage.style.display="block";
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.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@nelsonic nelsonic nelsonic left review comments

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

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