Skip to:
Content

BuddyPress.org

Ticket #7794: 7794-empty-links.patch

File 7794-empty-links.patch, 3.2 KB (added by imath, 7 years ago)
  • src/bp-templates/bp-nouveau/buddypress/common/js-templates/invites/index.php

    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 79aa13acd..0c3813359 100644
     
    8282</script>
    8383
    8484<script type="text/html" id="tmpl-bp-invites-selection">
    85         <a href="#" title="{{data.name}}">
    86                 <img src="{{data.avatar}}" class="avatar" alt="{{data.name}}" />
     85        <a href="#uninvite-user-{{data.id}}" title="{{data.name}}">
     86                <img src="{{data.avatar}}" class="avatar" title="{{data.name}}"/>
    8787        </a>
    8888</script>
    8989
  • src/bp-templates/bp-nouveau/includes/groups/functions.php

    diff --git src/bp-templates/bp-nouveau/includes/groups/functions.php src/bp-templates/bp-nouveau/includes/groups/functions.php
    index 6fc4fa23a..03306d9e2 100644
    function bp_nouveau_groups_localize_scripts( $params = array() ) { 
    112112
    113113        // Init the Group invites nav
    114114        $invites_nav = array(
    115                 'members' => array( 'id' => 'members', 'caption' => __( 'All Members', 'buddypress' ), 'order' => 5 ),
    116                 'invited' => array( 'id' => 'invited', 'caption' => __( 'Pending Invites', 'buddypress' ), 'order' => 90, 'hide' => (int) ! $show_pending ),
    117                 'invites' => array( 'id' => 'invites', 'caption' => __( 'Send Invites', 'buddypress' ), 'order' => 100, 'hide' => 1 ),
     115                'members' => array(
     116                        'id'      => 'members',
     117                        'caption' => __( 'All Members', 'buddypress' ),
     118                        'order'   => 5,
     119                ),
     120                'invited' => array(
     121                        'id'      => 'invited',
     122                        'caption' => __( 'Pending Invites', 'buddypress' ),
     123                        'order'   => 90,
     124                        'hide'    => (int) ! $show_pending,
     125                ),
     126                'invites' => array(
     127                        'id'      => 'invites',
     128                        'caption' => __( 'Send Invites', 'buddypress' ),
     129                        'order'   => 100,
     130                        'hide'    => 1,
     131                        'href'    => '#send-invites-editor',
     132                ),
    118133        );
    119134
    120135        if ( bp_is_active( 'friends' ) ) {
    121                 $invites_nav['friends'] = array( 'id' => 'friends', 'caption' => __( 'My Friends', 'buddypress' ), 'order' => 0 );
     136                $invites_nav['friends'] = array(
     137                        'id'      => 'friends',
     138                        'caption' => __( 'My Friends', 'buddypress' ),
     139                        'order'   => 0,
     140                );
    122141
    123142                if ( true === bp_nouveau_groups_disallow_all_members_invites() ) {
    124143                        unset( $invites_nav['members'] );
  • src/bp-templates/bp-nouveau/js/buddypress-group-invites.js

    diff --git src/bp-templates/bp-nouveau/js/buddypress-group-invites.js src/bp-templates/bp-nouveau/js/buddypress-group-invites.js
    index f78050d45..14fd2c2d2 100644
    window.bp = window.bp || {}; 
    7272                                this.navItems.add( {
    7373                                        id     : item.id,
    7474                                        name   : item.caption,
    75                                         href   : '#',
     75                                        href   : item.href || '#members-list',
    7676                                        active : activeView,
    7777                                        hide   : _.isUndefined( item.hide ) ? 0 : item.hide
    7878                                } );
    window.bp = window.bp || {}; 
    800800
    801801                initialize: function() {
    802802                        this.model.on( 'change:selected', this.removeView, this );
     803                        this.el.id = 'uninvite-user-' + this.model.get( 'id' );
    803804                },
    804805
    805806                removeSelection: function( event ) {