Skip to content

Commit

Permalink
Fix virus info opening without user feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
tverbeiren committed Aug 17, 2023
1 parent a0f045c commit 8b66dde
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions _template/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ renderedTree = tree
// Select the first tab in order to get to the root of the tabset
const virusInfo = document.getElementById(tabsetAnchor).parentNode.parentNode.parentNode
virusInfo.style.display = "block"
virusInfo.scrollIntoView()
// Now get the proper tab and open it
const thisVirusInfo = document.getElementById(virusToTab.get(virus_id))
thisVirusInfo.click();
Expand Down
1 change: 1 addition & 0 deletions alphaviruses/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ renderedTree = tree
// Select the first tab in order to get to the root of the tabset
const virusInfo = document.getElementById(tabsetAnchor).parentNode.parentNode.parentNode
virusInfo.style.display = "block"
virusInfo.scrollIntoView()
// Now get the proper tab and open it
const thisVirusInfo = document.getElementById(virusToTab.get(virus_id))
thisVirusInfo.click();
Expand Down
1 change: 1 addition & 0 deletions coronaviridae/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ renderedTree = tree
// Select the first tab in order to get to the root of the tabset
const virusInfo = document.getElementById(tabsetAnchor).parentNode.parentNode.parentNode
virusInfo.style.display = "block"
virusInfo.scrollIntoView()
// Now get the proper tab and open it
const thisVirusInfo = document.getElementById(virusToTab.get(virus_id))
thisVirusInfo.click();
Expand Down
1 change: 1 addition & 0 deletions flaviviridae/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ renderedTree = tree
// Select the first tab in order to get to the root of the tabset
const virusInfo = document.getElementById(tabsetAnchor).parentNode.parentNode.parentNode
virusInfo.style.display = "block"
virusInfo.scrollIntoView()
// Now get the proper tab and open it
const thisVirusInfo = document.getElementById(virusToTab.get(virus_id))
thisVirusInfo.click();
Expand Down
1 change: 1 addition & 0 deletions paramyxoviridae/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ renderedTree = tree
// Select the first tab in order to get to the root of the tabset
const virusInfo = document.getElementById(tabsetAnchor).parentNode.parentNode.parentNode
virusInfo.style.display = "block"
virusInfo.scrollIntoView()
// Now get the proper tab and open it
const thisVirusInfo = document.getElementById(virusToTab.get(virus_id))
thisVirusInfo.click();
Expand Down
1 change: 1 addition & 0 deletions pneumoviridae/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ renderedTree = tree
// Select the first tab in order to get to the root of the tabset
const virusInfo = document.getElementById(tabsetAnchor).parentNode.parentNode.parentNode
virusInfo.style.display = "block"
virusInfo.scrollIntoView()
// Now get the proper tab and open it
const thisVirusInfo = document.getElementById(virusToTab.get(virus_id))
thisVirusInfo.click();
Expand Down

0 comments on commit 8b66dde

Please sign in to comment.