Changeset 13416
- Timestamp:
- 02/10/2023 03:48:32 AM (2 years ago)
- Location:
- branches/11.0/src/bp-templates/bp-nouveau
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/11.0/src/bp-templates/bp-nouveau/buddypress/common/js-templates/messages/index.php
r13200 r13416 156 156 <div class="thread-subject"> 157 157 <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> 159 159 </div> 160 160 <p class="excerpt">{{data.excerpt}}</p> -
branches/11.0/src/bp-templates/bp-nouveau/js/buddypress-messages.js
r13369 r13416 1355 1355 1356 1356 messagesFetched: function( collection, response ) { 1357 if ( ! _.isUndefined( response.thread )) {1357 if ( response.thread && !! response.thread.length ) { 1358 1358 this.options.thread = new Backbone.Model( response.thread ); 1359 1359 } … … 1380 1380 1381 1381 sendReply: function( event ) { 1382 var threadItem; 1382 1383 event.preventDefault(); 1383 1384 … … 1386 1387 } 1387 1388 1389 threadItem = this.options.thread; 1390 if ( ! threadItem.has( 'id' ) ) { 1391 threadItem = this.options.collection.at( 0 ); 1392 } 1393 1388 1394 this.reply.set ( { 1389 thread_id : th is.options.thread.get( 'id' ),1395 thread_id : threadItem.get( 'id' ), 1390 1396 content : tinyMCE.activeEditor.getContent(), 1391 1397 sending : true
Note: See TracChangeset
for help on using the changeset viewer.