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

Tooltip does not work with apostrophes #197

Closed
pmccauley1 opened this issue Apr 16, 2014 · 0 comments
Closed

Tooltip does not work with apostrophes #197

pmccauley1 opened this issue Apr 16, 2014 · 0 comments
Labels
Milestone

Comments

@pmccauley1
Copy link

When defining a tooltip (using the "tooltip" attribute) that contains an apostrophe ('), only the text preceding the apostrophe appears. The apostrophe and any subsequent text does not appear in the tooltip.

I was able to work around this by adding the following JavaScript to the "renderNode" method:

var $span = $(node.span);
$span.find("> span.fancytree-title").attr("title", data.node.tooltip);
@mar10 mar10 added this to the 2.0.0 Backlog milestone Apr 16, 2014
@mar10 mar10 added the bug label Apr 16, 2014
@mar10 mar10 closed this as completed in 367f586 Apr 27, 2014
@mar10 mar10 modified the milestones: 2.0.0beta, v2.0.0 May 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants