Changeset 2477
- Timestamp:
- 01/29/2010 03:56:45 PM (15 years ago)
- Location:
- trunk/bp-themes/bp-default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/_inc/global.js
r2476 r2477 18 18 /* Members */ 19 19 if ( j('div.members').length ) 20 bp_filter_request( 'members', j.cookie('bp-members-filter'), j.cookie('bp-members-scope'), 'div.members' );20 bp_filter_request( 'members', j.cookie('bp-members-filter'), j.cookie('bp-members-scope'), 'div.members', false, 1, j.cookie('bp-members-extras') ); 21 21 22 22 /* Groups */ 23 23 if ( j('div.groups').length ) 24 bp_filter_request( 'groups', j.cookie('bp-groups-filter'), j.cookie('bp-groups-scope'), 'div.groups' );24 bp_filter_request( 'groups', j.cookie('bp-groups-filter'), j.cookie('bp-groups-scope'), 'div.groups', false, 1, j.cookie('bp-groups-extras') ); 25 25 26 26 /* Blogs */ 27 27 if ( j('div.blogs').length ) 28 bp_filter_request( 'blogs', j.cookie('bp-blogs-filter'), j.cookie('bp-blogs-scope'), 'div.blogs' );28 bp_filter_request( 'blogs', j.cookie('bp-blogs-filter'), j.cookie('bp-blogs-scope'), 'div.blogs', false, 1, j.cookie('bp-blogs-extras') ); 29 29 30 30 /* Forums */ 31 31 if ( j('div.forums').length ) { 32 32 j('div#new-topic-post').hide(); 33 bp_filter_request( 'forums', j.cookie('bp-forums-filter'), j.cookie('bp-forums-scope'), 'div.forums' );33 bp_filter_request( 'forums', j.cookie('bp-forums-filter'), j.cookie('bp-forums-scope'), 'div.forums', false, 1, j.cookie('bp-forums-extras') ); 34 34 } 35 35 … … 453 453 454 454 j('span.highlight span').click( function() { 455 j('div.help').remove(); 456 j(this).parent().after( '<div id="message" class="info help"><p>' + bp_mention_explain + '</p></div>' ); 457 j('div.help').hide().slideDown(200); 455 if ( !j('div.help').length ) { 456 j(this).parent().after( '<div id="message" class="info help"><p>' + bp_terms_mention_explain + '</p></div>' ); 457 j('div.help').hide().slideDown(200); 458 } else { 459 j('div.help').hide().remove(); 460 } 458 461 }) 459 462 … … 462 465 /* The search form on all directory pages */ 463 466 j('div.dir-search').click( function(event) { 467 if ( j(this).hasClass('no-ajax') ) 468 return false; 469 464 470 var target = j(event.target); 465 471 … … 468 474 var object = css_id[0]; 469 475 470 bp_filter_request( object, j.cookie('bp-' + object + '-filter'), j.cookie('bp-' + object + '-scope') , 'div.' + object, target.parent().children('label').children('input').val(), 1 );476 bp_filter_request( object, j.cookie('bp-' + object + '-filter'), j.cookie('bp-' + object + '-scope') , 'div.' + object, target.parent().children('label').children('input').val(), 1, j.cookie('bp-' + object + '-extras') ); 471 477 } 472 478 … … 500 506 j('li#' + object + '-' + filter).addClass('selected'); 501 507 502 bp_filter_request( object, filter, scope, 'div.' + object, search_terms, 1 );508 bp_filter_request( object, filter, scope, 'div.' + object, search_terms, 1, j.cookie('bp-' + object + '-extras') ); 503 509 504 510 return false; … … 519 525 var search_terms = j("#" + object + "_search").val(); 520 526 521 bp_filter_request( object, filter, scope, 'div.' + object, search_terms, 1 );527 bp_filter_request( object, filter, scope, 'div.' + object, search_terms, 1, j.cookie('bp-' + object + '-extras') ); 522 528 523 529 return false; … … 548 554 var page_number = Number( j(target).html() ); 549 555 550 bp_filter_request( object, j.cookie('bp-' + object + '-filter'), j.cookie('bp-' + object + '-scope'), 'div.' + object, j.cookie('bp-' + object + '-search-terms'), page_number );556 bp_filter_request( object, j.cookie('bp-' + object + '-filter'), j.cookie('bp-' + object + '-scope'), 'div.' + object, j.cookie('bp-' + object + '-search-terms'), page_number, j.cookie('bp-' + object + '-extras') ); 551 557 552 558 return false; … … 581 587 /* Clicking a forum tag */ 582 588 j('div#forum-directory-tags a').click( function() { 583 bp_filter_request( 'forums', 'tags', j.cookie('bp-forums-scope'), 'div.forums', j(this).html(), 1 );589 bp_filter_request( 'forums', 'tags', j.cookie('bp-forums-scope'), 'div.forums', j(this).html(), 1, j.cookie('bp-forums-extras') ); 584 590 return false; 585 591 }); … … 995 1001 j.cookie( 'bp-' + object + '-page', page, null ); 996 1002 j.cookie( 'bp-' + object + '-search-terms', search_terms, null ); 1003 j.cookie( 'bp-' + object + '-extras', extras, null ); 997 1004 998 1005 /* Set the correct selected nav and filter */ -
trunk/bp-themes/bp-default/functions.php
r2476 r2477 210 210 var bp_terms_show_all = '<?php _e( "Show all", "buddypress" ) ?>'; 211 211 var bp_terms_comments = '<?php _e( "comments", "buddypress" ) ?>'; 212 var bp_mention_explain = '<?php printf( __( "%s is a unique identifier for %s that you can type into any message on this site. %s will be sent a notification and a link to your message any time you use it.", "buddypress" ), '@' . bp_get_displayed_user_username(), bp_dtheme_firstname(bp_get_displayed_user_fullname()), bp_dtheme_firstname(bp_get_displayed_user_fullname()) ); ?>'; 212 var bp_terms_close = '<?php _e( "Close", "buddypress" ) ?>'; 213 var bp_terms_mention_explain = '<?php printf( __( "%s is a unique identifier for %s that you can type into any message on this site. %s will be sent a notification and a link to your message any time you use it.", "buddypress" ), '@' . bp_get_displayed_user_username(), bp_dtheme_firstname(bp_get_displayed_user_fullname()), bp_dtheme_firstname(bp_get_displayed_user_fullname()) ); ?>'; 213 214 </script> 214 215 <?php
Note: See TracChangeset
for help on using the changeset viewer.