Skip to content

Commit

Permalink
portin to ie11
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorpela committed Sep 24, 2020
1 parent 257b408 commit 0be44f9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/robot/htmldata/libdoc/libdoc.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h1>Opening library documentation failed</h1>
<script type="text/javascript">
// Not using jQuery here for speed and to support ancient browsers.
document.getElementById('javascript-disabled').style.display = 'none';
window.addEventListener("hashchange", () => {
window.addEventListener("hashchange", function() {
document.getElementsByClassName("hamburger-menu")[0].checked = false;
}, false);
</script>
Expand All @@ -60,7 +60,8 @@ <h1>Opening library documentation failed</h1>
tagSearch(selectedTag, window.location.hash);
}
if (libdoc.contains_tags) {
renderTemplate('tags-shortcuts', {...libdoc, selectedTag: selectedTag});
libdoc.selectedTag = selectedTag;
renderTemplate('tags-shortcuts', libdoc);
}
scrollToHash();
});
Expand Down Expand Up @@ -128,7 +129,8 @@ <h1>Opening library documentation failed</h1>
renderTemplate('keyword-shortcuts', result);
renderTemplate('keywords', result);
if (libdoc.contains_tags) {
renderTemplate('tags-shortcuts', {...libdoc, selectedTag: include.tagsExact ? pattern : ""});
libdoc.selectedTag = include.tagsExact ? pattern : "";
renderTemplate('tags-shortcuts', libdoc);
}
const ending = matchCount !== 1 ? 's.' : '.';
$('#match-count').show().text(matchCount + ' matched keyword' + ending);
Expand Down

0 comments on commit 0be44f9

Please sign in to comment.