mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ui: fix category tag on problem_edit (#655)
This commit is contained in:
1 parent
ba3c4776fa
commit
eda201dd65
1 file changed
+3
-3
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user