Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/21/2012 08:50:41 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Add ajax search to Private Messages inbox and sentbox. Fixes #3993. Props sbrajesh.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/_inc/ajax.php

    r5737 r5822  
    101101    locate_template( array( "$object/$object-loop.php" ), true );
    102102}
    103 add_action( 'wp_ajax_members_filter', 'bp_dtheme_object_template_loader' );
    104 add_action( 'wp_ajax_groups_filter',  'bp_dtheme_object_template_loader' );
    105 add_action( 'wp_ajax_blogs_filter',   'bp_dtheme_object_template_loader' );
    106 add_action( 'wp_ajax_forums_filter',  'bp_dtheme_object_template_loader' );
     103add_action( 'wp_ajax_members_filter',  'bp_dtheme_object_template_loader'   );
     104add_action( 'wp_ajax_groups_filter',   'bp_dtheme_object_template_loader'   );
     105add_action( 'wp_ajax_blogs_filter',    'bp_dtheme_object_template_loader'   );
     106add_action( 'wp_ajax_forums_filter',   'bp_dtheme_object_template_loader'   );
     107add_action( 'wp_ajax_messages_filter', 'bp_dtheme_messages_template_loader' );
     108
     109/*
     110 * Load messages when searched on the private message page
     111 */
     112
     113function bp_dtheme_messages_template_loader(){
     114    locate_template( array( 'members/single/messages/messages-loop.php' ), true );
     115}
    107116
    108117// This function will load the activity loop template when activity is requested via AJAX
Note: See TracChangeset for help on using the changeset viewer.