mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: fix page navigation
This commit is contained in:
1 parent
06870f0192
commit
f8d3f00d67
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.22.14",
|
||||
"version": "4.22.15",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "hydro.js",
|
||||
|
||||
@@ -230,7 +230,7 @@ const page = new NamedPage(['problem_main', 'problem_category'], () => {
|
||||
});
|
||||
$(document).on('click', 'a.pager__item', (ev) => {
|
||||
ev.preventDefault();
|
||||
pjax.request($(ev.currentTaget).attr('href')).then(() => window.scrollTo(0, 0));
|
||||
pjax.request({ url: $(ev.currentTaget).attr('href') }).then(() => window.scrollTo(0, 0));
|
||||
});
|
||||
$(document).on('vjContentNew', (e) => {
|
||||
createHint('Hint::icon::difficulty', $(e.target).find('th.col--difficulty'))
|
||||
|
||||
Reference in new issue
Block a user