Skip to:
Content

BuddyPress.org

Ticket #8112: 8112.patch

File 8112.patch, 854 bytes (added by imath, 4 years ago)
  • src/bp-templates/bp-nouveau/js/buddypress-activity-post-form.js

    diff --git src/bp-templates/bp-nouveau/js/buddypress-activity-post-form.js src/bp-templates/bp-nouveau/js/buddypress-activity-post-form.js
    index 27f242e23..f2afaaaa6 100644
    window.bp = window.bp || {}; 
    672672                },
    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' ) ) {
    677678                                        view.remove();
    window.bp = window.bp || {}; 
    777778                                        bp.Nouveau.inject( '#activity-stream ul.activity-list', response.activity, 'prepend' );
    778779                                }
    779780                        } ).fail( function( response ) {
    780 
    781781                                self.model.set( 'errors', { type: 'error', value: response.message } );
    782782                        } );
    783783                }