mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-09 16:49:01 +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
|
//update html-level order data to match new sort
|
||||||
let i = 1;
|
let i = 1;
|
||||||
$('#quickReplyContainer').children().each(function () {
|
$('#quickReplyContainer').children().each(function () {
|
||||||
|
const oldOrder = $(this).attr('data-order');
|
||||||
$(this).attr('data-order', i);
|
$(this).attr('data-order', i);
|
||||||
$(this).find('input').attr('id', `quickReply${i}Label`);
|
$(this).find('input').attr('id', `quickReply${i}Label`);
|
||||||
$(this).find('textarea').attr('id', `quickReply${i}Mes`);
|
$(this).find('textarea').attr('id', `quickReply${i}Mes`);
|
||||||
|
$(this).find(`#quickReply${oldOrder}CtxButton`).attr('id', `quickReply${i}CtxButton`);
|
||||||
i++;
|
i++;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user