mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: 页面布局优化
This commit is contained in:
1 parent
f820a089c6
commit
14948e97a7
9 files changed
+74
-35
No files matched your search
@@ -218,6 +218,15 @@ const page = new NamedPage(['problem_main', 'problem_category'], () => {
|
||||
ev.preventDefault();
|
||||
updateSelection();
|
||||
});
|
||||
$('#searchForm').on('submit', () => {
|
||||
updateSelection();
|
||||
return false;
|
||||
});
|
||||
let update;
|
||||
$('#searchForm').find('input').on('input', () => {
|
||||
if (update) clearTimeout(update);
|
||||
update = setTimeout(updateSelection, 500);
|
||||
});
|
||||
$(document).on('click', 'a.pager__item', (ev) => {
|
||||
ev.preventDefault();
|
||||
pjax.request({ url: $(ev.currentTarget).attr('href') }).then(() => {
|
||||
|
||||
Reference in new issue
Block a user