Skip to:
Content

BuddyPress.org

Changeset 1156


Ignore:
Timestamp:
02/25/2009 08:40:09 PM (16 years ago)
Author:
apeatling
Message:

Fixes #527

Location:
trunk/bp-groups
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-templatetags.php

    r1145 r1156  
    480480    global $groups_template, $bp;
    481481
    482     if ( 'my-groups' == $bp->current_action || !$bp->current_action ) {
    483         $action = $bp->loggedin_user->domain . $bp->groups->slug . '/my-groups/search/';
    484         $label = __('Filter Groups', 'buddypress');
    485         $name = 'group-filter-box';
    486     } else {
    487         $action = $bp->loggedin_user->domain . $bp->groups->slug . '/group-finder/search/';
    488         $label = __('Find a Group', 'buddypress');
    489         $name = 'groupfinder-search-box';
    490         $value = $bp->action_variables[0];
    491     }
     482    $action = $bp->loggedin_user->domain . $bp->groups->slug . '/my-groups/search/';
     483    $label = __('Filter Groups', 'buddypress');
     484    $name = 'group-filter-box';
    492485?>
    493486    <form action="<?php echo $action ?>" id="group-search-form" method="post">
    494487        <label for="<?php echo $name ?>" id="<?php echo $name ?>-label"><?php echo $label ?> <img id="ajax-loader" src="<?php echo $bp->groups->image_base ?>/ajax-loader.gif" height="7" alt="<?php _e( 'Loading', 'buddypress' ) ?>" style="display: none;" /></label>
    495488        <input type="search" name="<?php echo $name ?>" id="<?php echo $name ?>" value="<?php echo $value ?>"<?php echo $disabled ?> />
    496         <?php if ( function_exists('wp_nonce_field') )
    497             wp_nonce_field( $name );
    498         ?>
     489   
     490        <?php wp_nonce_field( 'group-filter-box', '_wpnonce_group_filter' ) ?>
    499491    </form>
    500492<?php
  • trunk/bp-groups/js/general.js

    r1052 r1156  
    8080                action: 'group_filter',
    8181                'cookie': encodeURIComponent(document.cookie),
    82                 '_wpnonce': jQuery("input#_wpnonce").val(),
     82                '_wpnonce': jQuery("input#_wpnonce_group_filter").val(),
    8383                'fpage': fpage[1],
    8484                'num': 10,
Note: See TracChangeset for help on using the changeset viewer.