Skip to:
Content

BuddyPress.org

Ticket #7794: 7794-removeInviteTooltip.patch

File 7794-removeInviteTooltip.patch, 4.4 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 62d627e68..b0fd523d0 100644
     
    9595</script>
    9696
    9797<script type="text/html" id="tmpl-bp-invites-selection">
    98         <a href="#uninvite-user-{{data.id}}" title="{{data.name}}">
     98        <a href="#uninvite-user-{{data.id}}" class="bp-tooltip" data-bp-tooltip="{{data.uninviteTooltip}}">
    9999                <img src="{{data.avatar}}" class="avatar" alt="{{data.name}}"/>
    100100        </a>
    101101</script>
  • src/bp-templates/bp-nouveau/css/buddypress-rtl.css

    diff --git src/bp-templates/bp-nouveau/css/buddypress-rtl.css src/bp-templates/bp-nouveau/css/buddypress-rtl.css
    index 74646f88a..813dc7067 100644
    body.no-js .single-item-header .js-self-profile-button { 
    25842584}
    25852585
    25862586.buddypress .bp-invites-content #send-invites-editor {
    2587         overflow: hidden;
     2587        display: table;
    25882588}
    25892589
    25902590.buddypress .bp-invites-content #send-invites-editor textarea {
    body.no-js .single-item-header .js-self-profile-button { 
    25952595        clear: both;
    25962596        list-style: none;
    25972597        margin: 10px 0;
    2598         overflow: hidden;
     2598        display: table;
    25992599}
    26002600
    26012601.buddypress .bp-invites-content #send-invites-editor ul li {
  • src/bp-templates/bp-nouveau/css/buddypress.css

    diff --git src/bp-templates/bp-nouveau/css/buddypress.css src/bp-templates/bp-nouveau/css/buddypress.css
    index a98a5ad8c..6b7f789cb 100644
    body.no-js .single-item-header .js-self-profile-button { 
    25842584}
    25852585
    25862586.buddypress .bp-invites-content #send-invites-editor {
    2587         overflow: hidden;
     2587        display: table;
    25882588}
    25892589
    25902590.buddypress .bp-invites-content #send-invites-editor textarea {
    body.no-js .single-item-header .js-self-profile-button { 
    25952595        clear: both;
    25962596        list-style: none;
    25972597        margin: 10px 0;
    2598         overflow: hidden;
     2598        display: table;
    25992599}
    26002600
    26012601.buddypress .bp-invites-content #send-invites-editor ul li {
  • 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 892302bf7..5387cb498 100644
    function bp_nouveau_groups_localize_scripts( $params = array() ) { 
    150150                'invites_form'       => __( 'Use the "Send" button to send your invite or the "Cancel" button to abort.', 'buddypress' ),
    151151                'invites_form_reset' => __( 'Invites cleared. Please use one of the available tabs to select members to invite.', 'buddypress' ),
    152152                'invites_sending'    => __( 'Sending the invites. Please wait.', 'buddypress' ),
     153                'removeUserInvite'   => __( 'Remove %s from the invites', 'buddypress' ),
    153154                'group_id'           => ! bp_get_current_group_id() ? bp_get_new_group_id() : bp_get_current_group_id(),
    154155                'is_group_create'    => bp_is_group_create(),
    155156                'nonces'             => array(
  • 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 26fc32f83..711b1c60d 100644
    window.bp = window.bp || {}; 
    803803
    804804                initialize: function() {
    805805                        this.model.on( 'change:selected', this.removeView, this );
     806
     807                        // Build the BP Tooltip.
     808                        if ( ! this.model.get( 'uninviteTooltip' ) ) {
     809                                this.model.set( 'uninviteTooltip',
     810                                        BP_Nouveau.group_invites.removeUserInvite.replace( '%s', this.model.get( 'name' ) ),
     811                                        { silent: true }
     812                                );
     813                        }
     814
    806815                        this.el.id = 'uninvite-user-' + this.model.get( 'id' );
    807816                },
    808817
  • src/bp-templates/bp-nouveau/sass/_nouveau_invites.scss

    diff --git src/bp-templates/bp-nouveau/sass/_nouveau_invites.scss src/bp-templates/bp-nouveau/sass/_nouveau_invites.scss
    index f6a16904b..5007d22b4 100644
     
    7878                } // close li
    7979
    8080                #send-invites-editor {
    81                         overflow: hidden;
     81                        display: table;
    8282
    8383                        textarea {
    8484                                width: 100%;
     
    8888                                clear: both;
    8989                                list-style: none;
    9090                                margin: $marg-sml 0;
    91                                 overflow: hidden;
     91                                display: table;
    9292
    9393                                li {
    9494                                        float: left;