mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: post-queue not working after #8580
This commit is contained in:
@@ -1,17 +1,20 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
define('admin/manage/post-queue', ['categorySelector'], function (categorySelector) {
|
||||
define('forum/post-queue', ['categorySelector'], function (categorySelector) {
|
||||
var PostQueue = {};
|
||||
|
||||
PostQueue.init = function () {
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
|
||||
console.log('here');
|
||||
$('.posts-list').on('click', '[data-action]', function () {
|
||||
console.log('derp');
|
||||
var parent = $(this).parents('[data-id]');
|
||||
var action = $(this).attr('data-action');
|
||||
var id = parent.attr('data-id');
|
||||
var method = action === 'accept' ? 'posts.accept' : 'posts.reject';
|
||||
console.log(parent, action, id, method);
|
||||
|
||||
socket.emit(method, { id: id }, function (err) {
|
||||
if (err) {
|
||||
Reference in New Issue
Block a user