mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: hook events on document
This commit is contained in:
1 parent
2b9c71c009
commit
91d85c69a0
4 files changed
+22
-24
No files matched your search
@@ -170,7 +170,7 @@ function parseCategorySelection() {
|
||||
|
||||
function ensureAndGetSelectedPids() {
|
||||
const pids = _.map(
|
||||
$(`tbody [data-checkbox-group="problem"]:checked`),
|
||||
$('tbody [data-checkbox-group="problem"]:checked'),
|
||||
(ch) => $(ch).closest('tr').attr('data-pid'),
|
||||
);
|
||||
if (pids.length === 0) {
|
||||
@@ -204,7 +204,7 @@ async function handleOperation(operation) {
|
||||
|
||||
const page = new NamedPage(['problem_main', 'problem_category'], () => {
|
||||
const doc = document.documentElement;
|
||||
doc.className = doc.className + ' display-mode';
|
||||
doc.className += ' display-mode';
|
||||
buildCategoryFilter();
|
||||
parseCategorySelection();
|
||||
$('[name="leave-edit-mode"]').on('click', () => {
|
||||
|
||||
Reference in new issue
Block a user