diff --git a/packages/ui-default/pages/problem_edit.page.js b/packages/ui-default/pages/problem_edit.page.js index bf7f9445..a4795390 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];