Skip to content

Commit

Permalink
PROD-7527 - When set page request 1 and load page then sub menu not s…
Browse files Browse the repository at this point in the history
…elected display
  • Loading branch information
jitendrabanjara1991 committed Jun 3, 2024
1 parent 495ce21 commit 9e6d367
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bp-templates/bp-nouveau/js/buddypress-nouveau.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,10 @@ window.bp = window.bp || {};
this.setStorage( 'bp-' + data.object, 'extras', data.extras );
}

if ( ! _.isUndefined( data.ajaxload ) && false === data.ajaxload ) {
return false;
}

/* Set the correct selected nav and filter */
$( this.objectNavParent + ' [data-bp-object]' ).each(
function () {
Expand All @@ -538,10 +542,6 @@ window.bp = window.bp || {};
}
);

if ( ! _.isUndefined( data.ajaxload ) && false === data.ajaxload ) {
return false;
}

if ( $( this.objectNavParent + ' [data-bp-scope="' + data.scope + '"]' ).length ) {
$( this.objectNavParent + ' [data-bp-scope="' + data.scope + '"], #object-nav li.current' ).addClass( 'selected loading' );
} else {
Expand Down

0 comments on commit 9e6d367

Please sign in to comment.