[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-members/admin/js/ -> signup-preview.js (source)

   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 ) );


Generated: Sun Dec 22 01:00:54 2024 Cross-referenced by PHPXref 0.7.1