mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
+"/cut N" for targeted mes deletion,
+ toggle to show mesIDs in chat
This commit is contained in:
@@ -1154,6 +1154,7 @@ function getMessageFromTemplate({
|
||||
mes.find('.ch_name .name_text').text(characterName);
|
||||
mes.find('.mes_bias').html(bias);
|
||||
mes.find('.timestamp').text(timestamp);
|
||||
mes.find('.mesIDDisplay').text(`#${mesId}`);
|
||||
title && mes.attr('title', title);
|
||||
timerValue && mes.find('.mes_timer').attr('title', timerTitle).text(timerValue);
|
||||
|
||||
@@ -5413,6 +5414,7 @@ async function importCharacterChat(formData) {
|
||||
function updateViewMessageIds() {
|
||||
$('#chat').find(".mes").each(function (index, element) {
|
||||
$(element).attr("mesid", index);
|
||||
$(element).find('.mesIDDisplay').text(`#${index}`);
|
||||
});
|
||||
|
||||
$('#chat .mes').removeClass('last_mes');
|
||||
|
Reference in New Issue
Block a user