From a159d706588e14388aa9de93a7e0a78e8f652a3f Mon Sep 17 00:00:00 2001 From: Django Doucet Date: Sun, 29 Jan 2023 17:29:57 -0700 Subject: [PATCH] delete old js --- assets/js/activitypub.js | 52 ---------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 assets/js/activitypub.js diff --git a/assets/js/activitypub.js b/assets/js/activitypub.js deleted file mode 100644 index 25a57e1..0000000 --- a/assets/js/activitypub.js +++ /dev/null @@ -1,52 +0,0 @@ -(function($) { - /** - * Reply Comment-edit screen - */ - if ( $('body').hasClass('edit-comments-php') ) { - //Insert Mentions into comment content on reply - $( '.comment-inline.button-link' ).on( 'click', function( event ) { - var recipients = $(this).attr('data-recipients') ? $(this).attr('data-recipients') + ' ' : ''; - setTimeout(function() { - if ( recipients ){ - $('#replycontent').val( recipients ) - } - }, 100); - }) - //Clear Mentions from content on cancel - $('.cancel.button').on('click', function(){ - $('#replycontent').val(''); - }); - } - - /** - * Tools screen - */ - if ( $('body').hasClass('tools_page_activitypub_tools') ) { - - $('.delete_annouce' ).on('click', function(event) { - event.preventDefault(); - var row = $(this).parents('tr') ? $(this).parents('tr') : ''; - var nonce = $(this).attr('data-nonce') ? $(this).attr('data-nonce') : ''; - var post_url = $(this).attr('data-post_url') ? $(this).attr('data-post_url') : ''; - var post_author = $(this).attr('data-post_author') ? $(this).attr('data-post_author') : ''; - var data = { - 'action': 'migrate_post', - 'nonce': nonce, - 'post_url': post_url, - 'post_author': post_author - } - $.ajax({ - url: ajaxurl, - type: 'POST', - data: data, - success: function () { - row.remove() - }, - error: function (jqXHR, textStatus, errorThrown) { - console.log(textStatus + errorThrown); - } - }) - }); - } - -})( jQuery );