- Timestamp:
- 05/02/2018 05:25:24 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/js/buddypress-messages.js
r11916 r12041 1105 1105 1106 1106 if ( 'star' === action || 'unstar' === action ) { 1107 var opposite = { 1108 'star' : 'unstar', 1109 'unstar' : 'star' 1110 }; 1111 1107 1112 options.data = { 1108 1113 'star_nonce' : this.model.get( 'star_nonce' ) 1109 1114 }; 1115 1116 $( event.currentTarget ).addClass( 'bp-hide' ); 1117 $( event.currentTarget ).parent().find( '[data-bp-action="' + opposite[ action ] + '"]' ).removeClass( 'bp-hide' ); 1118 1110 1119 } 1111 1120
Note: See TracChangeset
for help on using the changeset viewer.