From eda201dd65a994fa480e8e3f8ed57e06e2f850b6 Mon Sep 17 00:00:00 2001 From: panda Date: Sat, 2 Sep 2023 23:47:55 +0800 Subject: [PATCH] ui: fix category tag on problem_edit (#655) --- packages/ui-default/pages/problem_edit.page.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/ui-default/pages/problem_edit.page.js b/packages/ui-default/pages/problem_edit.page.js index bf7f94456..a47953901 100644 --- a/packages/ui-default/pages/problem_edit.page.js +++ b/packages/ui-default/pages/problem_edit.page.js @@ -84,7 +84,7 @@ function buildCategoryFilter() { const $categoryTag = $category .find('.section__title a') .remove() - .attr('class', 'widget--category-filter__category-tag'); + .attr('class', 'widget--category-filter__tag'); const categoryText = $categoryTag.text(); const $drop = $category .children('.chip-list') @@ -102,7 +102,7 @@ function buildCategoryFilter() { .children('li') .attr('class', 'widget--category-filter__subcategory') .find('a') - .attr('class', 'widget--category-filter__subcategory-tag') + .attr('class', 'widget--category-filter__tag') .attr('data-category', categoryText); $subCategoryTags.get().forEach((subCategoryTag) => { const $tag = $(subCategoryTag); @@ -114,7 +114,7 @@ function buildCategoryFilter() { }); } }); - $(document).on('click', '.widget--category-filter__category-tag', (ev) => { + $(document).on('click', '.widget--category-filter__tag', (ev) => { if (ev.shiftKey || ev.metaKey || ev.ctrlKey) return; const category = $(ev.currentTarget).text(); const treeItem = categories[category];