fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eebe542
)
scroll to top on pagination
master
author
Radek Czajka
<rczajka@rczajka.pl>
Wed, 16 Jul 2025 14:25:07 +0000
(16:25 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Wed, 16 Jul 2025 14:25:07 +0000
(16:25 +0200)
src/catalogue/static/book/filter.js
patch
|
blob
|
history
diff --git
a/src/catalogue/static/book/filter.js
b/src/catalogue/static/book/filter.js
index
2ff4262
..
37613bf
100644
(file)
--- a/
src/catalogue/static/book/filter.js
+++ b/
src/catalogue/static/book/filter.js
@@
-41,7
+41,11
@@
}
$("#paginator").on('click', 'a', function() {
- get_page_by_url(url=$(this).attr('href'));
+ get_page_by_url(url=$(this).attr('href'), () => {
+ $("html").animate({
+ scrollTop: $("#book-list").offset().top - 50
+ });
+ });
return false;
});