Skip to content

Commit

Permalink
PRJ-58 - Fixed - video move issue in popup in the activity screen
Browse files Browse the repository at this point in the history
  • Loading branch information
jitendrabanjara1991 committed Feb 6, 2025
1 parent 8796bf2 commit 32e38ab
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/bp-templates/bp-nouveau/readylaunch/js/buddypress-media.js
Original file line number Diff line number Diff line change
Expand Up @@ -5040,13 +5040,13 @@ window.bp = window.bp || {};
}
target.addClass( 'loading' );

var activityId = $( document ).find( 'a[data-media-id="' + itemId + '"]' ).attr( 'data-parent-activity-id' );

var groupId = self.group_id;
var attrSelector = 'video' === actionType ? 'li.bb_rl_move_video a[data-video-id="' + itemId + '"]' : 'a[data-media-id="' + itemId + '"]',
activityId = $( document ).find( attrSelector ).attr( 'data-parent-activity-id' ),
groupId = self.group_id;
if ( 'media' === actionType && ! groupId ) {
groupId = false;
if ( 'group' === $( document ).find( 'a[data-media-id="' + itemId + '"]' ).attr( 'data-type' ) ) {
groupId = $( document ).find( 'a[data-media-id="' + itemId + '"]' ).attr( 'id' );
if ( 'group' === $( document ).find( attrSelector ).attr( 'data-type' ) ) {
groupId = $( document ).find( attrSelector ).attr( 'id' );
}
}

Expand Down

0 comments on commit 32e38ab

Please sign in to comment.