refactor: replace the deprecated js api

This commit is contained in:
Cotes Chung
2023-02-15 04:53:40 +08:00
parent a2d01365de
commit c3a840076e
16 changed files with 47 additions and 58 deletions

View File

@@ -21,7 +21,7 @@ $(function () {
ScrollHelper.hideTopbar();
if ($searchInput.is(":focus")) {
$searchInput.blur(); /* remove focus */
$searchInput.trigger('blur'); /* remove focus */
}
} else { // Scroll up
@@ -73,7 +73,7 @@ $(function () {
});
}
$(window).scroll(() => {
$(window).on('scroll',() => {
if (didScroll) {
return;
}