Changeset 8264
- Timestamp:
- 04/10/2014 10:24:39 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-templates/bp-legacy/js/buddypress.js
r8251 r8264 113 113 var firstrow = jq( '#buddypress ul.activity-list li' ).first(); 114 114 var activity_row = firstrow; 115 116 if ( activity_row.hasClass( 'load-newest' ) ) { 117 activity_row = firstrow.next(); 118 } 119 120 timestamp = activity_row.prop( 'class' ).match( /date-recorded-([0-9]+)/ ); 115 var timestamp = null; 116 117 // Checks if at least one activity exists 118 if ( firstrow.length ) { 119 120 if ( activity_row.hasClass( 'load-newest' ) ) { 121 activity_row = firstrow.next(); 122 } 123 124 timestamp = activity_row.prop( 'class' ).match( /date-recorded-([0-9]+)/ ); 125 } 121 126 122 127 if ( timestamp ) {
Note: See TracChangeset
for help on using the changeset viewer.