Skip to:
Content

BuddyPress.org

Ticket #7794: 7794-removeInviteTooltip.2.patch

File 7794-removeInviteTooltip.2.patch, 6.4 KB (added by mercime, 7 years ago)
  • src/bp-templates/bp-nouveau/buddypress/common/js-templates/invites/index.php

     
    9595</script>
    9696
    9797<script type="text/html" id="tmpl-bp-invites-selection">
    98         <a href="#uninvite-user-{{data.id}}" title="{{data.name}}">
    99                 <img src="{{data.avatar}}" class="avatar" alt="{{data.name}}"/>
     98        <a href="#uninvite-user-{{data.id}}" class="bp-tooltip" data-bp-tooltip="{{data.uninviteTooltip}}" aria-label="{{data.uninviteTooltip}}">
     99                <img src="{{data.avatar}}" class="avatar" alt=""/>
    100100        </a>
    101101</script>
    102102
  • src/bp-templates/bp-nouveau/common-styles/_bp_tooltips.scss

     
    100100
    101101        @include bp-tooltip-bottom-right;
    102102}
     103
     104.bp-invites-content #send-invites-editor .bp-tooltip {
     105
     106        // override .bp-invites-content .bp-tooltip
     107        &:after {
     108                left: 0;
     109                right: auto;
     110        }
     111}
  • src/bp-templates/bp-nouveau/css/buddypress-rtl.css

     
    25832583        margin: 10px 0;
    25842584}
    25852585
    2586 .buddypress .bp-invites-content #send-invites-editor {
    2587         overflow: hidden;
     2586.buddypress .bp-invites-content #send-invites-editor ul:before,
     2587.buddypress .bp-invites-content #send-invites-editor ul:after {
     2588        content: " ";
     2589        display: table;
    25882590}
    25892591
     2592.buddypress .bp-invites-content #send-invites-editor ul:after {
     2593        clear: both;
     2594}
     2595
    25902596.buddypress .bp-invites-content #send-invites-editor textarea {
    25912597        width: 100%;
    25922598}
     
    25952601        clear: both;
    25962602        list-style: none;
    25972603        margin: 10px 0;
    2598         overflow: hidden;
    25992604}
    26002605
    26012606.buddypress .bp-invites-content #send-invites-editor ul li {
     
    26052610        max-width: 50px;
    26062611}
    26072612
     2613.buddypress .bp-invites-content #send-invites-editor #bp-send-invites-form {
     2614        clear: both;
     2615        margin-top: 10px;
     2616}
     2617
    26082618.buddypress .bp-invites-content #send-invites-editor .action {
    26092619        margin-top: 10px;
    26102620        padding-top: 10px;
     
    47584768        transform: translate(0, 0);
    47594769}
    47604770
     4771.bp-invites-content #send-invites-editor .bp-tooltip:after {
     4772        right: 0;
     4773        left: auto;
     4774}
     4775
    47614776/**
    47624777*-------------------------------------------------------------------------------
    47634778* @section 9.0 - Layout classes
  • src/bp-templates/bp-nouveau/css/buddypress.css

     
    25832583        margin: 10px 0;
    25842584}
    25852585
    2586 .buddypress .bp-invites-content #send-invites-editor {
    2587         overflow: hidden;
     2586.buddypress .bp-invites-content #send-invites-editor ul:before,
     2587.buddypress .bp-invites-content #send-invites-editor ul:after {
     2588        content: " ";
     2589        display: table;
    25882590}
    25892591
     2592.buddypress .bp-invites-content #send-invites-editor ul:after {
     2593        clear: both;
     2594}
     2595
    25902596.buddypress .bp-invites-content #send-invites-editor textarea {
    25912597        width: 100%;
    25922598}
     
    25952601        clear: both;
    25962602        list-style: none;
    25972603        margin: 10px 0;
    2598         overflow: hidden;
    25992604}
    26002605
    26012606.buddypress .bp-invites-content #send-invites-editor ul li {
     
    26052610        max-width: 50px;
    26062611}
    26072612
     2613.buddypress .bp-invites-content #send-invites-editor #bp-send-invites-form {
     2614        clear: both;
     2615        margin-top: 10px;
     2616}
     2617
    26082618.buddypress .bp-invites-content #send-invites-editor .action {
    26092619        margin-top: 10px;
    26102620        padding-top: 10px;
     
    47584768        transform: translate(0, 0);
    47594769}
    47604770
     4771.bp-invites-content #send-invites-editor .bp-tooltip:after {
     4772        left: 0;
     4773        right: auto;
     4774}
     4775
    47614776/**
    47624777*-------------------------------------------------------------------------------
    47634778* @section 9.0 - Layout classes
  • src/bp-templates/bp-nouveau/includes/groups/functions.php

     
    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'   => __( 'Disinvite %s', '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

     
    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

     
    7777
    7878                } // close li
    7979
     80                @include clearfix-element("#send-invites-editor ul");
     81
    8082                #send-invites-editor {
    81                         overflow: hidden;
    8283
    8384                        textarea {
    8485                                width: 100%;
     
    8889                                clear: both;
    8990                                list-style: none;
    9091                                margin: $marg-sml 0;
    91                                 overflow: hidden;
    9292
    9393                                li {
    9494                                        float: left;
     
    9898                                }
    9999                        } // ul
    100100
     101                        #bp-send-invites-form {
     102                                clear: both;
     103                                margin-top: $marg-sml;
     104                        }
     105
    101106                        .action {
    102107                                margin-top: $marg-sml;
    103108                                padding-top: 10px;