Skip to content

Commit

Permalink
docs: fix broken version selector (#13102) (#13107)
Browse files Browse the repository at this point in the history
Signed-off-by: Harold Cheng <niuchangcun@gmail.com>
Co-authored-by: cjc7373 <niuchangcun@gmail.com>
  • Loading branch information
gcp-cherry-pick-bot[bot] and cjc7373 authored Apr 4, 2023
1 parent ee174fa commit 034e6cc
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions docs/assets/versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,6 @@ setTimeout(function() {
caret.innerHTML = "<i class='fa fa-caret-down dropdown-caret'></i>"
caret.classList.add('dropdown-caret')
div.querySelector('.rst-current-version').appendChild(caret);
div.querySelector('.rst-current-version').addEventListener('click', function() {
const classes = container.className.split(' ');
const index = classes.indexOf('shift-up');
if (index === -1) {
classes.push('shift-up');
} else {
classes.splice(index, 1);
}
container.className = classes.join(' ');
});
}

var CSSLink = document.createElement('link');
Expand Down

0 comments on commit 034e6cc

Please sign in to comment.