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

Add Show Comments button #931

Closed
wants to merge 3 commits into from
Closed

Conversation

danroth27
Copy link
Member

@shirhatti Please review

@danroth27
Copy link
Member Author

@javiercn @Rick-Anderson @rachelappel @Erikre Please review

@javiercn
Copy link
Member

:shipit:

@shirhatti
Copy link
Contributor

I propose you do one of these two things:

  1. Replace the Show comments with Show/Hide toggle functionality
  2. Hide/Disable the Show comments button after you press it.

Right you can repeatedly press the show comments, and there is no feedback to indicate nothing happens after the first time you press it

@danroth27
Copy link
Member Author

@shirhatti I opted for # 2.

@Rick-Anderson
Copy link
Contributor

#2 is the right choice.

/* * * DON'T EDIT BELOW THIS LINE * * */
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
Copy link
Contributor

Choose a reason for hiding this comment

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

You've used a JQuery style DOM selector in line 1 and a vanilla js DOM selector in line 13. Maybe try and be consistent?

Copy link
Member Author

Choose a reason for hiding this comment

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

This part of the code is the recommended code snippet from the disqus docs, so I'm leaving it untouched.

@shirhatti
Copy link
Contributor

:shipit:

@danroth27
Copy link
Member Author

cd2b93c

@danroth27 danroth27 closed this Jan 27, 2016
@danroth27 danroth27 deleted the danroth27/collapsedisqus branch February 18, 2016 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants