trigger action:post.toggleVote on client-cide

Unsolved Technical Support
  • 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