Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/10/2023 03:40:41 AM (3 years ago)
Author:
imath
Message:

BP Nouveau: Make sure the thread ID is transported into thread view

The Backbone based Messages UI of the Nouveau template pack is now looking for the displayed thread ID inside the messages collection if the current thread object hasn't been returned by the Ajax request. This prevent an error that was happening when trying to reply to a thread message after the thread has been displayed without re-requesting the server.

Props casper99

Closes https://github.com/buddypress/buddypress/pull/63
See #8825

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/common/js-templates/messages/index.php

    r13200 r13415  
    156156        <div class="thread-subject">
    157157            <span class="thread-count">({{data.count}})</span>
    158             <a class="subject" href="../view/{{data.id}}/">{{data.subject}}</a>
     158            <a class="subject" href="./view/{{data.id}}/">{{data.subject}}</a>
    159159        </div>
    160160        <p class="excerpt">{{data.excerpt}}</p>
Note: See TracChangeset for help on using the changeset viewer.