Disable bulk edit for bogus folders

This commit is contained in:
Cohee
2023-11-10 22:18:48 +02:00
parent 066f74ed46
commit 7e2ec3ea43
3 changed files with 10 additions and 5 deletions

View File

@ -996,10 +996,6 @@ function getTagBlock(item) {
template.find('.avatar').css({'background-color': item.color, 'color': item.color2 });
template.find('.ch_name').text(item.name);
template.find('.bogus_folder_counter').text(count);
template.on('click', () => {
console.log('Bogus folder clicked', item.id);
entitiesFilter.setFilterData(FILTER_TYPES.TAG, { excluded: [], selected: [item.id], bogus: true, });
});
return template;
}
@ -7524,6 +7520,12 @@ jQuery(async function () {
await selectCharacterById(id);
});
$(document).on("click", ".bogus_folder_select", function () {
const tagId = $(this).attr('tagid');
console.log('Bogus folder clicked', tagId);
entitiesFilter.setFilterData(FILTER_TYPES.TAG, { excluded: [], selected: [tagId], bogus: true, });
})
$(document).on("input", ".edit_textarea", function () {
scroll_holder = $("#chat").scrollTop();
$(this).height(0).height(this.scrollHeight);