Changeset 9129
- Timestamp:
- 11/10/2014 03:45:40 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-legacy/js/buddypress.js
r9094 r9129 1603 1603 1604 1604 // Set the last id to request after 1605 var first_item_recorded = 0; 1605 1606 jq( document ).on( 'heartbeat-send.buddypress', function( e, data ) { 1606 1607 1607 first row= 0;1608 first_item_recorded = 0; 1608 1609 1609 1610 // First row is default latest activity id … … 1613 1614 1614 1615 if ( timestamp ) { 1615 first row= timestamp[1];1616 } 1617 } 1618 1619 if ( 0 === activity_last_recorded || Number( first row) > activity_last_recorded ) {1620 activity_last_recorded = Number( first row);1616 first_item_recorded = timestamp[1]; 1617 } 1618 } 1619 1620 if ( 0 === activity_last_recorded || Number( first_item_recorded ) > activity_last_recorded ) { 1621 activity_last_recorded = Number( first_item_recorded ); 1621 1622 } 1622 1623
Note: See TracChangeset
for help on using the changeset viewer.