[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 /* global bpSignupPreview */ 2 /** 3 * Opens a modal to preview a signup/membership request. 4 * 5 * @since 10.0.0 6 */ 7 ( function( $ ) { 8 // Bail if not set or if Thickbox is not available. 9 if ( typeof bpSignupPreview === 'undefined' || 'function' !== typeof window.tb_show ) { 10 return; 11 } 12 13 $( function() { 14 $( '.bp-thickbox' ).on( 'click', function( e ) { 15 e.preventDefault(); 16 17 var fragment = $( e.target ).prop( 'href' ).split( '#TB_inline&' )[1]; 18 19 window.tb_show( 'BuddyPress', '#TB_inline?' + fragment ); 20 window.bpAdjustThickbox( bpSignupPreview.modalLabel, '1em' ); 21 } ); 22 } ); 23 }( jQuery ) );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Oct 13 01:00:54 2024 | Cross-referenced by PHPXref 0.7.1 |