Changeset 1156
- Timestamp:
- 02/25/2009 08:40:09 PM (16 years ago)
- Location:
- trunk/bp-groups
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-templatetags.php
r1145 r1156 480 480 global $groups_template, $bp; 481 481 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'; 492 485 ?> 493 486 <form action="<?php echo $action ?>" id="group-search-form" method="post"> 494 487 <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> 495 488 <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' ) ?> 499 491 </form> 500 492 <?php -
trunk/bp-groups/js/general.js
r1052 r1156 80 80 action: 'group_filter', 81 81 'cookie': encodeURIComponent(document.cookie), 82 '_wpnonce': jQuery("input#_wpnonce ").val(),82 '_wpnonce': jQuery("input#_wpnonce_group_filter").val(), 83 83 'fpage': fpage[1], 84 84 'num': 10,
Note: See TracChangeset
for help on using the changeset viewer.