Changeset 7946
- Timestamp:
- 02/21/2014 02:37:15 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-templates/bp-legacy/js/buddypress.js
r7941 r7946 748 748 var el = jq('li.filter select'); 749 749 750 var page_number = 1;751 750 var css_id = el.attr('id').split( '-' ); 752 751 var object = css_id[0]; … … 754 753 var pagination_id = jq(target).closest('.pagination-links').attr('id'); 755 754 755 var page_number = target.attr('href').split( '=' ); 756 page_number = page_number[1]; 757 756 758 if ( jq('div.dir-search input').length ) 757 759 search_terms = jq('.dir-search input').val(); 758 760 759 if ( jq(target).hasClass('next') )760 var page_number = Number( jq('.pagination span.current').html() ) + 1;761 else if ( jq(target).hasClass('prev') )762 var page_number = Number( jq('.pagination span.current').html() ) - 1;763 else764 var page_number = Number( jq(target).html() );765 766 761 if ( pagination_id.indexOf( 'pag-bottom' ) !== -1 ) { 767 762 var caller = 'pag-bottom';
Note: See TracChangeset
for help on using the changeset viewer.