Skip to:
Content

BuddyPress.org

Changeset 12891


Ignore:
Timestamp:
04/17/2021 03:08:42 PM (4 years ago)
Author:
imath
Message:

Nouveau: clear errors when the Activity Post Form feedback is removed

To make sure a new error is generating a feedback view, the errors attribute of the Activity model needs to be unset.

Prop studiocrafted

Fixes #8112

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/js/buddypress-activity-post-form.js

    r12856 r12891  
    673673
    674674        cleanFeedback: function() {
     675            this.model.unset( 'errors', { silent: true } );
    675676            _.each( this.views._views[''], function( view ) {
    676677                if ( 'message' === view.$el.prop( 'id' ) ) {
     
    778779                }
    779780            } ).fail( function( response ) {
    780 
    781781                self.model.set( 'errors', { type: 'error', value: response.message } );
    782782            } );
Note: See TracChangeset for help on using the changeset viewer.