watermark logo

From Kief To Hash

3 Views


0 Comments Sort By

No comments found

'+text+'

'); $(button).attr('disabled', true); $.post('https://blackjunction.tv/aj/add-comment', {video_id: video_id, text: text}, function(data, textStatus, xhr) { if (data.status == 200) { if ($('.user-comments .empty_state').length > 0) { $('.user-comments .empty_state').remove(); } $('#comment-textarea').val('').css('height', '50px');; $('#video-user-comments').prepend(data.comment); } $(button).attr('disabled', false); }); } function PT_DeleteComment(id) { if (!id) { return false; } if (!confirm('Are you sure you want to delete your comment?')) { return false; } $('#comment-' + id).slideUp('fast'); $.post('https://blackjunction.tv/aj/delete-comment', {id: id}); } function PT_PinComment(id,pin){ if (!id) { return false; } let pinned_comments = $('#pinned-comment'); if (pin) { $("#comment-" + id).slideUp(200,function(){ Snackbar.show({text: 'Comment pinned to top',pos: 'bottom-center',showAction: false}); }) } else{ pinned_comments.empty(); Snackbar.show({text: 'Comment unpinned',pos: 'bottom-center',showAction: false}); } $.post('https://blackjunction.tv/aj/pin-comment', {id: id},function(data){ if (data.status == 200) { $("#comment-" + id).slideUp(100,function(){ $(this).remove(); pinned_comments.scrollTo(); }); pinned_comments.html(data.html); } else if(data.status == 304){ $("#video-user-comments").append(data.html); } }); }