mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Check for message deletable on click
This commit is contained in:
@@ -4909,8 +4909,8 @@ $(document).ready(function () {
|
||||
|
||||
$(document).on("click", ".mes", function () {
|
||||
//when a 'delete message' parent div is clicked
|
||||
// and we are in delete mode
|
||||
if (!is_delete_mode) {
|
||||
// and we are in delete mode and del_checkbox is visible
|
||||
if (!is_delete_mode || !$(this).children('.del_checkbox').is(':visible')) {
|
||||
return;
|
||||
}
|
||||
$(".mes").children(".del_checkbox").each(function () {
|
||||
|
Reference in New Issue
Block a user