From efeedc12742154ad3d92189b0fde6e7b3c46f7ff Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 9 Jan 2025 22:39:40 +0200 Subject: [PATCH] Revert gallery selector changes --- public/scripts/extensions/gallery/index.js | 2 +- public/scripts/power-user.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/extensions/gallery/index.js b/public/scripts/extensions/gallery/index.js index 94b8c30c7..c34ea56e3 100644 --- a/public/scripts/extensions/gallery/index.js +++ b/public/scripts/extensions/gallery/index.js @@ -277,7 +277,7 @@ function makeMovable(id = 'gallery') { const newElement = $(template); newElement.css('background-color', 'var(--SmartThemeBlurTintColor)'); newElement.attr('forChar', id); - newElement.attr('id', `draggable_${id}`); + newElement.attr('id', id); newElement.find('.drag-grabber').attr('id', `${id}header`); newElement.find('.dragTitle').text('Image Gallery'); //add a div for the gallery diff --git a/public/scripts/power-user.js b/public/scripts/power-user.js index c25f275c7..b3b7f41d5 100644 --- a/public/scripts/power-user.js +++ b/public/scripts/power-user.js @@ -3970,7 +3970,7 @@ $(document).ready(() => { const targetSelector = { chat: '#chat', background: '#bg1', - gallery: '#draggable_gallery', + gallery: '#gallery', zoomedAvatar: 'div.zoomed_avatar', }[args.to || 'chat'];