From b506a17260110df6ab98c0c12dcff2ad31c442fc Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 7 Dec 2023 15:29:40 +0200 Subject: [PATCH] Fix expand after drag --- public/scripts/chats.js | 2 +- public/scripts/extensions/quick-reply/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/chats.js b/public/scripts/chats.js index 85c9e75c1..508815651 100644 --- a/public/scripts/chats.js +++ b/public/scripts/chats.js @@ -378,7 +378,7 @@ jQuery(function () { }); $(document).on('click', '.editor_maximize', function () { - const broId = $(this).data('for'); + const broId = $(this).attr('data-for'); const bro = $(`#${broId}`); if (!bro.length) { diff --git a/public/scripts/extensions/quick-reply/index.js b/public/scripts/extensions/quick-reply/index.js index d7e4204b5..1f2392faf 100644 --- a/public/scripts/extensions/quick-reply/index.js +++ b/public/scripts/extensions/quick-reply/index.js @@ -691,7 +691,7 @@ function saveQROrder() { $(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`); - $(this).find(`#quickReply${oldOrder}ExpandButton`).attr('id', `quickReply${i}ExpandButton`); + $(this).find(`#quickReply${oldOrder}ExpandButton`).attr({ 'data-for': `quickReply${i}Mes`, 'id': `quickReply${i}ExpandButton` }); i++; });