You either need to write the AJAX function to handle this (you should be able to copy something from one of the core components) or put a class=”no-ajax” on the surrounding div.
@andy
Thanks for the quick reply.
May I have some reference to file where should I look?
fskv,
I ran into the same thing. It usually happens if you use the class “pagination” for a div. Buddypress searches the page for divs with that class and “Hijacks” the click to use ajax. Here is the specific line in global.js:
if ( target.parent().parent().hasClass('pagination') && !target.parent().parent().hasClass('no-ajax') ) {
Look at where you created the divs for your pagination, and as Andy said: add “no-ajax” to the class.
To have the pagination on the homepage-activity-stream I just added the no-ajax class to the code and it works.
Wrote ticket 2223 to have the no-ajax class in the pagination code in activity-loop.php, so that it works without having to find this thread.