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

Show pointer cursor only on sparklines that are linked to a graph #8767

Merged
merged 2 commits into from Sep 14, 2015

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Sep 11, 2015

fixes #7084
adds a new class "linked" to sparklines that are bounded to a graph to use it to determine if pointer cursor should be shown on hover.

@sgiehl sgiehl added Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement. Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. labels Sep 11, 2015
@mattab mattab modified the milestone: 2.15.0 Sep 14, 2015
@@ -42,6 +42,9 @@ window.initializeSparklines = function () {

// try to find sparklines and add them clickable behaviour
graph.parent().find('div.sparkline').each(function () {

$(this).addClass('linked');
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't this class be added a few lines below, under if (sparklineUrl != "") { ?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, guess that makes a bit more sense :)

@sgiehl
Copy link
Member Author

sgiehl commented Sep 14, 2015

@mattab if you have nothing else, guess it's ready to merge :)

mattab pushed a commit that referenced this pull request Sep 14, 2015
Show pointer cursor only on sparklines that are linked to a graph
@mattab mattab merged commit d12eb73 into master Sep 14, 2015
@sgiehl sgiehl deleted the cursor_fix_for_non_linked_sparklines branch September 16, 2015 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement. Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants