Skip to content

Commit

Permalink
PRJ-55 - Move Schedule form in header
Browse files Browse the repository at this point in the history
  • Loading branch information
amincdev committed Jan 30, 2025
1 parent e8e4d2b commit 1bf9a8e
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1447,6 +1447,12 @@ window.bp = window.bp || {};

render: function () {
this.$el.html( this.template( this.model.toJSON() ) );

if ( bp.Views.activitySchedulePost !== undefined ) {
this.views.add( new bp.Views.activitySchedulePost( { model: this.model } ) );
$( '.bb-rl-activity-form' ).addClass( 'bb-rl-activity-form--schedule' );
}

return this;
},

Expand Down Expand Up @@ -4409,9 +4415,6 @@ window.bp = window.bp || {};
)
);

if ( bp.Views.activitySchedulePost !== undefined ) {
this.views.add( new bp.Views.activitySchedulePost( { model: this.model } ) );
}
this.views.add( new bp.Views.FormSubmit( { model: this.model } ) );
}
}
Expand Down

0 comments on commit 1bf9a8e

Please sign in to comment.