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 1c07e0a8a..beaeaba0f 100644
|
|
window.bp = window.bp || {}; |
121 | 121 | template : bp.template( 'activity-post-form-feedback' ), |
122 | 122 | |
123 | 123 | initialize: function() { |
124 | | this.model = new Backbone.Model(); |
| 124 | var classes = this.options.classes || []; |
| 125 | this.model = new Backbone.Model(); |
125 | 126 | |
126 | 127 | if ( this.options.value ) { |
127 | 128 | this.model.set( 'message', this.options.value, { silent: true } ); |
… |
… |
window.bp = window.bp || {}; |
133 | 134 | this.type = this.options.type; |
134 | 135 | } |
135 | 136 | |
136 | | this.el.className = this.type; |
| 137 | if ( ! classes.length ) { |
| 138 | classes.push( this.type ); |
| 139 | } |
| 140 | |
| 141 | this.el.className = classes.join( ' ' ); |
137 | 142 | } |
138 | 143 | } ); |
139 | 144 | |
… |
… |
window.bp = window.bp || {}; |
728 | 733 | /** |
729 | 734 | * Do not add to the stream if the scope is not consistent with the activity |
730 | 735 | */ |
731 | | self.views.add( new bp.Views.activityFeedback( { value: response.message, type: 'updated' } ) ); |
| 736 | self.views.add( new bp.Views.activityFeedback( { |
| 737 | value: response.message, |
| 738 | type: 'updated', |
| 739 | classes: ['updated', 'published'] |
| 740 | } ) ); |
732 | 741 | } ).fail( function( response ) { |
733 | 742 | |
734 | 743 | self.model.set( 'errors', { type: 'error', value: response.message } ); |