Skip to content

Commit

Permalink
fix: post-queue not working after #8580
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Aug 27, 2020
1 parent efc30e9 commit dc5bd76
Showing 1 changed file with 4 additions and 1 deletion.
@@ -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) {
Expand Down

0 comments on commit dc5bd76

Please sign in to comment.