diff --git src/bp-templates/bp-nouveau/buddypress/common/js-templates/messages/index.php src/bp-templates/bp-nouveau/buddypress/common/js-templates/messages/index.php
index bab7b4192..4328ee295 100644
|
|
|
|
| 9 | 9 | */ |
| 10 | 10 | ?> |
| 11 | 11 | <div class="subnav-filters filters user-subnav bp-messages-filters" id="subsubnav"></div> |
| 12 | | <div class="bp-messages-content"></div> |
| 13 | 12 | <div class="bp-messages-feedback"></div> |
| | 13 | <div class="bp-messages-content"></div> |
| 14 | 14 | |
| 15 | 15 | <script type="text/html" id="tmpl-bp-messages-form"> |
| 16 | 16 | <?php bp_nouveau_messages_hook( 'before', 'compose_content' ); ?> |
| … |
… |
|
| 227 | 227 | |
| 228 | 228 | <div class="actions"> |
| 229 | 229 | <# if ( undefined !== data.star_link ) { #> |
| 230 | | |
| 231 | | <?php $test = 1; ?> |
| 232 | | |
| 233 | | <# if ( false !== data.is_starred ) { #> |
| 234 | | <button type="button" class="message-action-unstar bp-tooltip bp-icons" data-bp-star-link="{{data.star_link}}" data-bp-action="unstar" data-bp-tooltip="<?php esc_attr_e( 'Unstar Message', 'buddypress' ); ?>"> |
| 235 | | <span class="bp-screen-reader-text"><?php esc_html_e( 'Unstar Message', 'buddypress' ); ?></span> |
| 236 | | </button> |
| 237 | | <# } else { #> |
| 238 | | <button type="button" class="message-action-star bp-tooltip bp-icons" data-bp-star-link="{{data.star_link}}" data-bp-action="star" data-bp-tooltip="<?php esc_attr_e( 'Star Message', 'buddypress' ); ?>"> |
| 239 | | <span class="bp-screen-reader-text"><?php esc_html_e( 'Star Message', 'buddypress' ); ?></span> |
| 240 | | </button> |
| 241 | | <# } #> |
| 242 | | |
| | 230 | <button type="button" class="message-action-unstar bp-tooltip bp-icons <# if ( false === data.is_starred ) { #>bp-hide<# } #>" data-bp-star-link="{{data.star_link}}" data-bp-action="unstar" data-bp-tooltip="<?php esc_attr_e( 'Unstar Message', 'buddypress' ); ?>"> |
| | 231 | <span class="bp-screen-reader-text"><?php esc_html_e( 'Unstar Message', 'buddypress' ); ?></span> |
| | 232 | </button> |
| | 233 | <button type="button" class="message-action-star bp-tooltip bp-icons <# if ( false !== data.is_starred ) { #>bp-hide<# } #>" data-bp-star-link="{{data.star_link}}" data-bp-action="star" data-bp-tooltip="<?php esc_attr_e( 'Star Message', 'buddypress' ); ?>"> |
| | 234 | <span class="bp-screen-reader-text"><?php esc_html_e( 'Star Message', 'buddypress' ); ?></span> |
| | 235 | </button> |
| 243 | 236 | <# } #> |
| 244 | 237 | </div> |
| 245 | 238 | |
diff --git src/bp-templates/bp-nouveau/css/buddypress.css src/bp-templates/bp-nouveau/css/buddypress.css
index 2dbccba6e..f3ef6949e 100644
|
|
|
body.register .buddypress-wrap .page ul { |
| 3024 | 3024 | max-width: 30%; |
| 3025 | 3025 | } |
| 3026 | 3026 | |
| 3027 | | .bp-messages-content .actions .bp-icons { |
| | 3027 | .bp-messages-content .actions .bp-icons:not(.bp-hide) { |
| 3028 | 3028 | display: inline-block; |
| 3029 | 3029 | margin: 0; |
| 3030 | 3030 | padding: 0.3em 0.5em; |
| … |
… |
body.register .buddypress-wrap .page ul { |
| 3073 | 3073 | -webkit-box-shadow: -2px 1px 9px 0 #eee; |
| 3074 | 3074 | -moz-box-shadow: -2px 1px 9px 0 #eee; |
| 3075 | 3075 | box-shadow: -2px 1px 9px 0 #eee; |
| 3076 | | overflow: hidden; |
| | 3076 | display: table; |
| | 3077 | width: 100%; |
| 3077 | 3078 | padding: 0.2em; |
| 3078 | 3079 | } |
| 3079 | 3080 | |
diff --git src/bp-templates/bp-nouveau/js/buddypress-messages.js src/bp-templates/bp-nouveau/js/buddypress-messages.js
index b36b9f15e..be91b66a2 100644
|
|
|
window.bp = window.bp || {}; |
| 1104 | 1104 | } |
| 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' ); |
| 1110 | 1118 | } |
| 1111 | 1119 | |
| 1112 | 1120 | bp.Nouveau.Messages.threads.doAction( action, this.model.get( 'id' ), options ).done( function( response ) { |