We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c973974 commit 7d687a2Copy full SHA for 7d687a2
assets/js/app.coffee
@@ -40,8 +40,8 @@ class Choosealicense
40
# Dynamically add annotations as title attribute to rule list items
41
for ruletype, rules of window.annotations
42
for rule in rules
43
- # Only select license elements in table, not legend
44
- licenseLiElement = $("td.license-#{ruletype} .#{rule["tag"]}")
+ # Exclude license elements in the legend
+ licenseLiElement = $(".license-#{ruletype} .#{rule["tag"]}").not("dd.license-#{ruletype} .#{rule["tag"]}")
45
tooltipAttr = @tooltipAttributesMapperByRuleType[ruletype]
46
licenseLiElement.attr "aria-label", "#{tooltipAttr.heading}: #{rule.description}"
47
licenseLiElement.addClass("hint--bottom
0 commit comments