ui: fix page navigation

This commit is contained in:
undefined committed 2021-10-09 23:48:25 +08:00
1 parent 06870f0192
commit f8d3f00d67
2 files changed
+2 -2

No files matched your search

@@ -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'))