From f541cc64f8ef2f43ddaedb2f0a388c005775219c Mon Sep 17 00:00:00 2001 From: Alex Kirk Date: Thu, 18 Jan 2024 18:54:36 +0100 Subject: [PATCH] Fix delete button --- friends-admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/friends-admin.js b/friends-admin.js index 0cc66ade..7708d6fa 100644 --- a/friends-admin.js +++ b/friends-admin.js @@ -200,7 +200,7 @@ jQuery( function ( $ ) { $( document ).on( 'click', '.delete-feed', function () { // eslint-disable-next-line no-alert if ( window.confirm( friends.delete_feed_question ) ) { - $( this ).closest( 'tr' ).remove(); + $( this ).closest( 'li' ).remove(); } return false; } );