2021-07-25 23:25:02 +00:00
|
|
|
jQuery( function( $ ) {
|
2020-08-24 15:44:54 +00:00
|
|
|
$( '.post-type-gp_elements .page-title-action:not(.legacy-button)' ).on( 'click', function( e ) {
|
2020-08-13 14:53:39 +00:00
|
|
|
e.preventDefault();
|
|
|
|
|
|
|
|
$( '.choose-element-type-parent' ).show();
|
|
|
|
} );
|
|
|
|
|
|
|
|
$( '.close-choose-element-type' ).on( 'click', function( e ) {
|
|
|
|
e.preventDefault();
|
|
|
|
|
|
|
|
$( '.choose-element-type-parent' ).hide();
|
|
|
|
} );
|
2021-07-25 23:25:02 +00:00
|
|
|
|
|
|
|
// Don't allow Elements to quick edit parents.
|
|
|
|
$( '.inline-edit-gp_elements select#post_parent, .inline-edit-gp_elements .inline-edit-menu-order-input, .bulk-edit-gp_elements select#post_parent' ).each( function() {
|
|
|
|
$( this ).closest( 'label' ).remove();
|
|
|
|
} );
|
2020-08-13 14:53:39 +00:00
|
|
|
} );
|