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

Adding an option to open links in a new window #55

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

stevenleeg
Copy link

This has always been a feature that I've looked for in HN. It just adds a simple checkbox to the user's preferences page which allows them to decide whether or not they want links to open in new windows.

@@ -48,9 +48,12 @@ function submit() {
}

function update_profile() {
var checked = '0';
if($('input[name=new_window]').is(':checked')) checked = '1';

Choose a reason for hiding this comment

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

You're aware that you've used mis-matched whitespace correct?

Contrary to the rest of the code...

  • You've omitted curly braces
  • You're using a different quote style (single? the rest uses double)

Copy link
Author

Choose a reason for hiding this comment

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

Ah! I hope you'll excuse my newness to contributing to open-source, I didn't even realize things like these mattered. I'll get right on it.

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.

2 participants