HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/intranet.kauko.lt/wp-content/plugins/buddypress/bp-members/admin/js/signup-preview.js
/* global bpSignupPreview */
/**
 * Opens a modal to preview a signup/membership request.
 *
 * @since 10.0.0
 */
( function( $ ) {
	// Bail if not set or if Thickbox is not available.
	if ( typeof bpSignupPreview === 'undefined' || 'function' !== typeof window.tb_show ) {
		return;
	}

	$( function() {
		$( '.bp-thickbox' ).on( 'click', function( e ) {
			e.preventDefault();

			var fragment = $( e.target ).prop( 'href' ).split( '#TB_inline&' )[1];

			window.tb_show( 'BuddyPress', '#TB_inline?' + fragment );
			window.bpAdjustThickbox( bpSignupPreview.modalLabel, '1em' );
		} );
	} );
}( jQuery ) );