Skip to content

Commit

Permalink
fix: debug logging 🐶
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Aug 27, 2020
1 parent 56101ae commit fb3b4a0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions public/src/client/post-queue.js
Expand Up @@ -7,14 +7,11 @@ define('forum/post-queue', ['categorySelector'], function (categorySelector) {
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 fb3b4a0

Please sign in to comment.