From 8f6a68ca09e67516bb1c856110d417611115033c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 18 May 2023 14:20:09 -0400 Subject: [PATCH] fix: closes #11612 fix selectors --- public/src/client/post-queue.js | 2 +- src/views/post-queue.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/client/post-queue.js b/public/src/client/post-queue.js index e2617b273e..a4b357b1d2 100644 --- a/public/src/client/post-queue.js +++ b/public/src/client/post-queue.js @@ -110,10 +110,10 @@ define('forum/post-queue', [ if (listEl) { listEl.addEventListener('click', (e) => { const subselector = e.target.closest('[data-action]'); + console.log(subselector); if (subselector) { const action = subselector.getAttribute('data-action'); const uid = subselector.closest('[data-uid]').getAttribute('data-uid'); - switch (action) { case 'editCategory': { const categoryEl = e.target.closest('[data-id]').querySelector('.topic-category'); diff --git a/src/views/post-queue.tpl b/src/views/post-queue.tpl index 1cfad75554..c6691f6c98 100644 --- a/src/views/post-queue.tpl +++ b/src/views/post-queue.tpl @@ -45,7 +45,7 @@ {{{ end }}} {{{ each posts }}} -
+
{{{ if !singlePost }}}