Changeset 13458
- Timestamp:
- 04/22/2023 07:38:25 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/11.0/src/bp-templates/bp-nouveau/js/buddypress-messages.js
r13416 r13458 2 2 /* jshint devel: true */ 3 3 /* @since 3.0.0 */ 4 /* @version 1 0.3.0 */4 /* @version 11.2.0 */ 5 5 window.wp = window.wp || {}; 6 6 window.bp = window.bp || {}; … … 1355 1355 1356 1356 messagesFetched: function( collection, response ) { 1357 if ( response.thread && !! response.thread. length) {1357 if ( response.thread && !! response.thread.id ) { 1358 1358 this.options.thread = new Backbone.Model( response.thread ); 1359 1359 } … … 1388 1388 1389 1389 threadItem = this.options.thread; 1390 if ( ! threadItem. has( 'id' )) {1390 if ( ! threadItem.id ) { 1391 1391 threadItem = this.options.collection.at( 0 ); 1392 1392 } 1393 1393 1394 1394 this.reply.set ( { 1395 thread_id : threadItem. get( 'id' ),1395 thread_id : threadItem.id, 1396 1396 content : tinyMCE.activeEditor.getContent(), 1397 1397 sending : true
Note: See TracChangeset
for help on using the changeset viewer.