diff --git src/bp-templates/bp-nouveau/buddypress/common/js-templates/invites/index.php src/bp-templates/bp-nouveau/buddypress/common/js-templates/invites/index.php
index 475fba104..b8410ecfb 100644
|
|
|
|
| 103 | 103 | <span id="button-text" class="bp-screen-reader-text"><?php esc_html_e( 'Search', 'buddypress' ); ?></span> |
| 104 | 104 | </button> |
| 105 | 105 | </form> |
| 106 | | </div> |
| | 106 | </div> |
| 107 | 107 | </div> |
| 108 | 108 | </script> |
| 109 | 109 | |
| 110 | 110 | <script type="text/html" id="tmpl-bp-invites-paginate"> |
| 111 | 111 | <# if ( 1 !== data.page ) { #> |
| 112 | | <button type="button" id="bp-invites-prev-page" class="button invite-button"> |
| | 112 | <a href="#previous-page" id="bp-invites-prev-page" class="button invite-button"> |
| 113 | 113 | <span class="bp-screen-reader-text"><?php esc_html_e( 'Previous', 'buddypress' ); ?></span> |
| 114 | | </button> |
| | 114 | <span class="dashicons dashicons-arrow-left" aria-hidden="true"></span> |
| | 115 | </a> |
| 115 | 116 | <# } #> |
| 116 | 117 | |
| 117 | 118 | <# if ( data.total_page !== data.page ) { #> |
| 118 | | <button type="button" id="bp-invites-next-page" class="button invite-button"> |
| 119 | | <span class="bp-screen-reader-text"><?php esc_html_e( 'Next', 'buddypress' ); ?></span> |
| 120 | | </button> |
| | 119 | <a href="#next-page" id="bp-invites-next-page" class="button invite-button"> |
| | 120 | <span class="bp-screen-reader-text"><?php esc_html_e( 'Previous', 'buddypress' ); ?></span> |
| | 121 | <span class="dashicons dashicons-arrow-right" aria-hidden="true"></span> |
| | 122 | </a> |
| 121 | 123 | <# } #> |
| 122 | 124 | </script> |
diff --git src/bp-templates/bp-nouveau/js/buddypress-group-invites.js src/bp-templates/bp-nouveau/js/buddypress-group-invites.js
index 40e281802..66ac2f5a3 100644
|
|
|
window.bp = window.bp || {}; |
| 479 | 479 | } ); |
| 480 | 480 | |
| 481 | 481 | bp.Views.Pagination = bp.Nouveau.GroupInvites.View.extend( { |
| 482 | | tagName : 'li', |
| | 482 | tagName : 'div', |
| 483 | 483 | className : 'last', |
| 484 | 484 | template : bp.template( 'bp-invites-paginate' ) |
| 485 | 485 | } ); |
| … |
… |
window.bp = window.bp || {}; |
| 505 | 505 | view.remove(); |
| 506 | 506 | } ); |
| 507 | 507 | |
| | 508 | if ( 1 === collection.options.total_page ) { |
| | 509 | return; |
| | 510 | } |
| | 511 | |
| 508 | 512 | this.views.add( new bp.Views.Pagination( { model: new Backbone.Model( collection.options ) } ) ); |
| 509 | 513 | }, |
| 510 | 514 | |