Skip to content

Commit

Permalink
applies final review suggestions
Browse files Browse the repository at this point in the history
-changes a let to a const
-instead of removing the class tooltip it removes the attribute
  • Loading branch information
andOrlando committed Dec 16, 2020
1 parent 7423db0 commit c2adbbd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions public/js/extraFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -888,8 +888,9 @@ let initialize_quarter_dropdown = function(includedTerms) {
const term = termConverter[parseInt(c.id[1]) || 0];
const isAccessibleObj = isAccessible(term, includedTerms);
$(c)
.removeClass(["inaccessible", "tooltip"])
.removeClass("inaccessible")
.remove(".tooltiptext")
.removeAttr("tooltip")
.removeAttr("tabindex");
c.removeEventListener("click", listener);

Expand Down Expand Up @@ -1036,7 +1037,7 @@ function setup_tooltips() {
if (child.querySelector('.tooltiptext') === null) {

// Creates the tooltip
let node = document.createElement("SPAN")
const node = document.createElement("SPAN")

// Gives it the class
node.classList.add("tooltiptext")
Expand Down

0 comments on commit c2adbbd

Please sign in to comment.