Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/05/2018 06:48:40 AM (7 years ago)
Author:
imath
Message:

BP Nouveau: use a JS Template for the Group Invites UI feedbacks

Using a JS template avoids to transport common HTML tags inside the Ajax replies.

See #7794

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/groups/functions.php

    r12059 r12060  
    147147    $params['group_invites'] = array(
    148148        'nav'                => bp_sort_by_key( $invites_nav, 'order', 'num' ),
    149         'loading'            => bp_nouveau_message_markup_wrapper( __( 'Loading members. Please wait.', 'buddypress' ), 'loading' ),
    150         'invites_form'       => bp_nouveau_message_markup_wrapper( __( 'Use the "Send" button to send your invite or the "Cancel" button to abort.', 'buddypress' ), 'info' ),
    151         'invites_form_reset' => bp_nouveau_message_markup_wrapper( __( 'Invites cleared. Please use one of the available tabs to select members to invite.', 'buddypress' ), 'success' ),
    152         'invites_sending'    => bp_nouveau_message_markup_wrapper( __( 'Sending the invites. Please wait.', 'buddypress' ), 'loading' ),
     149        'loading'            => __( 'Loading members. Please wait.', 'buddypress' ),
     150        'invites_form'       => __( 'Use the "Send" button to send your invite or the "Cancel" button to abort.', 'buddypress' ),
     151        'invites_form_reset' => __( 'Invites cleared. Please use one of the available tabs to select members to invite.', 'buddypress' ),
     152        'invites_sending'    => __( 'Sending the invites. Please wait.', 'buddypress' ),
    153153        'group_id'           => ! bp_get_current_group_id() ? bp_get_new_group_id() : bp_get_current_group_id(),
    154154        'is_group_create'    => bp_is_group_create(),
Note: See TracChangeset for help on using the changeset viewer.