mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-04 13:17:36 +01:00
fix: ctx button id after reordering
This commit is contained in:
parent
604e62298c
commit
8283d4dc08
@ -692,9 +692,11 @@ function saveQROrder() {
|
||||
//update html-level order data to match new sort
|
||||
let i = 1;
|
||||
$('#quickReplyContainer').children().each(function () {
|
||||
const oldOrder = $(this).attr('data-order');
|
||||
$(this).attr('data-order', i);
|
||||
$(this).find('input').attr('id', `quickReply${i}Label`);
|
||||
$(this).find('textarea').attr('id', `quickReply${i}Mes`);
|
||||
$(this).find(`#quickReply${oldOrder}CtxButton`).attr('id', `quickReply${i}CtxButton`);
|
||||
i++;
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user