Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
[backport] PR elastic#6228
Browse files Browse the repository at this point in the history
Includes changes from commits 8992535 and a7074da
  • Loading branch information
spalger committed Mar 2, 2016
1 parent ea36977 commit 5ec29c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ui/public/vislib/lib/dispatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ define(function (require) {
Dispatch.prototype.highlightLegend = function (element) {
var label = this.getAttribute('data-label');
if (!label) return;
$('[data-label]', element.parentNode).not('[data-label="' + label + '"]').css('opacity', 0.5);
$('[data-label]', element.parentNode).not(function (els, el) { return $(el).data('label') !== label; }).css('opacity', 0.5);
};

/**
Expand Down
2 changes: 1 addition & 1 deletion src/ui/public/visualize/visualize_legend.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ define(function (require) {
});

$scope.highlightSeries = function (label) {
$('[data-label]', $elem.siblings()).not('[data-label="' + label + '"]').css('opacity', 0.5);
$('[data-label]', $elem.siblings()).not(function (els, el) { return $(el).data('label') !== label;}).css('opacity', 0.5);
};

$scope.unhighlightSeries = function () {
Expand Down

0 comments on commit 5ec29c5

Please sign in to comment.