Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("span#unlike_Post").click(function(e){
- e.preventDefault();
- const btnEval = $(this).data('id');
- const postID = btnEval;
- const likedUser = $("#likedUser").val();
- const userUID = $("#postUserUID").val();
- const uid = $(this).data("uid");
- $.ajax(
- {
- url: '/resources/jquery/addons/ajax/site/forum/post.unlike.php',
- method: 'POST',
- data: {
- sent: 1,
- postID: postID,
- likedUser: likedUser,
- userUID: userUID,
- uid: uid
- },
- success: function(response) {
- $('li.' + postID).prepend(response);
- $('.nk-forum-topic-author-likes').text(".nk-forum-topic-author-likes");
- },
- dataType: 'text'
- }
- )
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement