Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenny-Jiani committed Nov 17, 2023
1 parent eb00ed0 commit 69d913b
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions assets/js/historymanage-two.js
Original file line number Diff line number Diff line change
@@ -193,8 +193,11 @@ function RequestNewPage(aTag, paramLink, onlyLoadContent=false) {
if (hash && $("#" + hash).length > 0) {
var scrollTop = $("#" + hash).offset().top
setTimeout(function() {
window.scrollTo(0, scrollTop)
//$("a[href='#"+hash+"']").click()
if ($("a[href='#"+hash+"']").length > 0) {
$("a[href='#"+hash+"']").click()
} else {
window.scrollTo(0, scrollTop)
}
}, 200)
} else {
if (sd > 0) {
2 changes: 1 addition & 1 deletion assets/js/historymanage-two.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 69d913b

Please sign in to comment.