Skip to content

Commit

Permalink
Use textContent and jQuery to set label and title (elastic#16178) (el…
Browse files Browse the repository at this point in the history
…astic#16201)

* Use textContent to set tagcloud label

* Use jquery to set disabled vis title
  • Loading branch information
timroes authored Jan 24, 2018
1 parent 95ac492 commit 8221b17
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core_plugins/tagcloud/public/tag_cloud_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ module.controller('KbnTagCloudController', function ($scope, $element, Private,
}

const bucketName = containerNode.querySelector('.tagcloud-custom-label');
bucketName.innerHTML = `${$scope.vis.aggs[0].makeLabel()} - ${$scope.vis.aggs[1].makeLabel()}`;


bucketName.textContent = `${$scope.vis.aggs[0].makeLabel()} - ${$scope.vis.aggs[1].makeLabel()}`;
truncatedMessage.style.display = truncated ? 'block' : 'none';


Expand Down

0 comments on commit 8221b17

Please sign in to comment.