Skip to content
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

hide spinner after search #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SherifIsmail01
Copy link

#3 Find and hide spinner after results are displayed
The file (index.js.erb) was missing the necessary code to hide the spinner after the results are displayed

@@ -1,2 +1,3 @@
$("#articleList").html('<%= raw escape_javascript(render(partial: "article_list", locals: { articles: @articles })) %>');
$("#spinner").show();
$("#spinner").hide();
Copy link

Choose a reason for hiding this comment

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

Why does this code show and then immediately hide the spinner?

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

Successfully merging this pull request may close these issues.

2 participants