Skip to content

Commit

Permalink
Insert in the right order
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Aug 29, 2024
1 parent 1e582a7 commit f0eaa95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion friends-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ jQuery( function ( $ ) {
if ( 0 === $( '#friends-dashboard-widget' ).find( 'li.friends-post' ).length ) {
$( '#friends-dashboard-widget' ).html( response.data );
} else {
$( response.data ).find( 'li.friends-post' ).each( function () {
$( response.data ).find( 'li.friends-post' ).reverse().each( function () {
if ( ! document.getElementById( $(this).attr('id') ) ) {
$( '#friends-dashboard-widget ul' ).prepend( this );
}
Expand Down

0 comments on commit f0eaa95

Please sign in to comment.