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

Javascript: Fix row-click handler #611

Merged
merged 1 commit into from
Mar 24, 2017

Conversation

ThisIsMissEm
Copy link
Contributor

Only enable entire row clicking if data-url is present, otherwise it triggers an error if you've customised the view and removed the data-url on the tr elements.


var dataUrl = $(event.target).closest("tr").data("url”);
if (dataUrl) {
window.location = dataUrl;

Choose a reason for hiding this comment

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

Unclosed string.

@ThisIsMissEm
Copy link
Contributor Author

Ack. Sorry about those strings. Seems they were auto-corrected on me. (teaches me for writing this patch in browser)

Only enable entire row clicking if data-url is present, otherwise it
triggers an error if you've customised the view and removed the data-url
on the `tr` elements
@nickcharlton
Copy link
Member

Hi @ThisIsMissEm!

Thanks for this! Would you be able to enable contributor pushes so that I can rebase and get this merged?

@ThisIsMissEm
Copy link
Contributor Author

Done

@nickcharlton
Copy link
Member

Thank you!

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.

3 participants