|
|
@ -110,10 +110,10 @@ define('forum/post-queue', [
|
|
|
|
if (listEl) {
|
|
|
|
if (listEl) {
|
|
|
|
listEl.addEventListener('click', (e) => {
|
|
|
|
listEl.addEventListener('click', (e) => {
|
|
|
|
const subselector = e.target.closest('[data-action]');
|
|
|
|
const subselector = e.target.closest('[data-action]');
|
|
|
|
|
|
|
|
console.log(subselector);
|
|
|
|
if (subselector) {
|
|
|
|
if (subselector) {
|
|
|
|
const action = subselector.getAttribute('data-action');
|
|
|
|
const action = subselector.getAttribute('data-action');
|
|
|
|
const uid = subselector.closest('[data-uid]').getAttribute('data-uid');
|
|
|
|
const uid = subselector.closest('[data-uid]').getAttribute('data-uid');
|
|
|
|
|
|
|
|
|
|
|
|
switch (action) {
|
|
|
|
switch (action) {
|
|
|
|
case 'editCategory': {
|
|
|
|
case 'editCategory': {
|
|
|
|
const categoryEl = e.target.closest('[data-id]').querySelector('.topic-category');
|
|
|
|
const categoryEl = e.target.closest('[data-id]').querySelector('.topic-category');
|
|
|
|