Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/05/2018 06:21:08 AM (8 years ago)
Author:
imath
Message:

BP Nouveau: use a JS Template for the feedbacks of the Messages UI

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/buddypress/common/js-templates/messages/index.php

    r12041 r12058  
    1313<div class="bp-messages-feedback"></div>
    1414<div class="bp-messages-content"></div>
     15
     16<script type="text/html" id="tmpl-bp-messages-feedback">
     17    <div class="bp-feedback {{data.type}}">
     18        <span class="bp-icon" aria-hidden="true"></span>
     19        <p>{{{data.message}}}</p>
     20    </div>
     21</script>
    1522
    1623<script type="text/html" id="tmpl-bp-messages-form">
Note: See TracChangeset for help on using the changeset viewer.