Skip to content

Commit

Permalink
[REVERT-4398] Remove open schedule posts list modal event
Browse files Browse the repository at this point in the history
  • Loading branch information
amincdev committed May 7, 2024
1 parent daeaf6f commit 9a5f1ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
22 changes: 0 additions & 22 deletions src/bp-templates/bp-nouveau/js/buddypress-activity-post-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,28 +116,6 @@ window.bp = window.bp || {};
}
);

// View scheduled posts modal.
$( document ).on(
'click',
'.bb-view-scheduled-posts',
function() {
// Let closing modal know that we are opening view schedule posts modal from outside.
bp.Nouveau.SchedulePostView = true;

// Show post form modal.
jQuery( '.activity-update-form .activity-form:not(.focus-in) #whats-new' ).trigger( 'focus' );

// Open view schedule posts modal.
setTimeout( function() {
$( '.activity-form .bb-schedule-post_dropdown_button' ).trigger( 'click' );

setTimeout( function() {
$( '.activity-form .bb-view-schedule-posts' ).trigger( 'click' );
}, 0 );
}, 0 );
}
);

Backbone.trigger( 'mediaprivacy' );
},

Expand Down

Large diffs are not rendered by default.

0 comments on commit 9a5f1ff

Please sign in to comment.