Ticket #7794: 7794-removeInviteTooltip.2.patch
File 7794-removeInviteTooltip.2.patch, 6.4 KB (added by , 7 years ago) |
---|
-
src/bp-templates/bp-nouveau/buddypress/common/js-templates/invites/index.php
95 95 </script> 96 96 97 97 <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=""/> 100 100 </a> 101 101 </script> 102 102 -
src/bp-templates/bp-nouveau/common-styles/_bp_tooltips.scss
100 100 101 101 @include bp-tooltip-bottom-right; 102 102 } 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
2583 2583 margin: 10px 0; 2584 2584 } 2585 2585 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; 2588 2590 } 2589 2591 2592 .buddypress .bp-invites-content #send-invites-editor ul:after { 2593 clear: both; 2594 } 2595 2590 2596 .buddypress .bp-invites-content #send-invites-editor textarea { 2591 2597 width: 100%; 2592 2598 } … … 2595 2601 clear: both; 2596 2602 list-style: none; 2597 2603 margin: 10px 0; 2598 overflow: hidden;2599 2604 } 2600 2605 2601 2606 .buddypress .bp-invites-content #send-invites-editor ul li { … … 2605 2610 max-width: 50px; 2606 2611 } 2607 2612 2613 .buddypress .bp-invites-content #send-invites-editor #bp-send-invites-form { 2614 clear: both; 2615 margin-top: 10px; 2616 } 2617 2608 2618 .buddypress .bp-invites-content #send-invites-editor .action { 2609 2619 margin-top: 10px; 2610 2620 padding-top: 10px; … … 4758 4768 transform: translate(0, 0); 4759 4769 } 4760 4770 4771 .bp-invites-content #send-invites-editor .bp-tooltip:after { 4772 right: 0; 4773 left: auto; 4774 } 4775 4761 4776 /** 4762 4777 *------------------------------------------------------------------------------- 4763 4778 * @section 9.0 - Layout classes -
src/bp-templates/bp-nouveau/css/buddypress.css
2583 2583 margin: 10px 0; 2584 2584 } 2585 2585 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; 2588 2590 } 2589 2591 2592 .buddypress .bp-invites-content #send-invites-editor ul:after { 2593 clear: both; 2594 } 2595 2590 2596 .buddypress .bp-invites-content #send-invites-editor textarea { 2591 2597 width: 100%; 2592 2598 } … … 2595 2601 clear: both; 2596 2602 list-style: none; 2597 2603 margin: 10px 0; 2598 overflow: hidden;2599 2604 } 2600 2605 2601 2606 .buddypress .bp-invites-content #send-invites-editor ul li { … … 2605 2610 max-width: 50px; 2606 2611 } 2607 2612 2613 .buddypress .bp-invites-content #send-invites-editor #bp-send-invites-form { 2614 clear: both; 2615 margin-top: 10px; 2616 } 2617 2608 2618 .buddypress .bp-invites-content #send-invites-editor .action { 2609 2619 margin-top: 10px; 2610 2620 padding-top: 10px; … … 4758 4768 transform: translate(0, 0); 4759 4769 } 4760 4770 4771 .bp-invites-content #send-invites-editor .bp-tooltip:after { 4772 left: 0; 4773 right: auto; 4774 } 4775 4761 4776 /** 4762 4777 *------------------------------------------------------------------------------- 4763 4778 * @section 9.0 - Layout classes -
src/bp-templates/bp-nouveau/includes/groups/functions.php
150 150 'invites_form' => __( 'Use the "Send" button to send your invite or the "Cancel" button to abort.', 'buddypress' ), 151 151 'invites_form_reset' => __( 'Invites cleared. Please use one of the available tabs to select members to invite.', 'buddypress' ), 152 152 'invites_sending' => __( 'Sending the invites. Please wait.', 'buddypress' ), 153 'removeUserInvite' => __( 'Disinvite %s', 'buddypress' ), 153 154 'group_id' => ! bp_get_current_group_id() ? bp_get_new_group_id() : bp_get_current_group_id(), 154 155 'is_group_create' => bp_is_group_create(), 155 156 'nonces' => array( -
src/bp-templates/bp-nouveau/js/buddypress-group-invites.js
803 803 804 804 initialize: function() { 805 805 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 806 815 this.el.id = 'uninvite-user-' + this.model.get( 'id' ); 807 816 }, 808 817 -
src/bp-templates/bp-nouveau/sass/_nouveau_invites.scss
77 77 78 78 } // close li 79 79 80 @include clearfix-element("#send-invites-editor ul"); 81 80 82 #send-invites-editor { 81 overflow: hidden;82 83 83 84 textarea { 84 85 width: 100%; … … 88 89 clear: both; 89 90 list-style: none; 90 91 margin: $marg-sml 0; 91 overflow: hidden;92 92 93 93 li { 94 94 float: left; … … 98 98 } 99 99 } // ul 100 100 101 #bp-send-invites-form { 102 clear: both; 103 margin-top: $marg-sml; 104 } 105 101 106 .action { 102 107 margin-top: $marg-sml; 103 108 padding-top: 10px;