Unsolved trigger action:post.toggleVote on client-cide


  • hi,
    I'm trying to do a client side script that eliminates dislike, apparently the shape is like this:

     $(window).trigger('action:post.toggleVote', {
        "pid": "501",
        "delta": -1,
        "unvote": true
    });
    

    But it does not work. In fact, I can not initiate any change in the voting of posts ...
    What's wrong here? 🙄


Suggested Topics

  • 1
  • 1
  • 1
  • 12
  • 3
| | |

© 2014 – 2022 NodeBB, Inc. — Made in Canada.