laipower/wp-content/plugins/gp-premium/elements/assets/admin/elements.js

14 lines
359 B
JavaScript
Raw Normal View History

jQuery( document ).ready( function( $ ) {
$( '.post-type-gp_elements .page-title-action:not(.legacy-button)' ).on( 'click', function( e ) {
e.preventDefault();
$( '.choose-element-type-parent' ).show();
} );
$( '.close-choose-element-type' ).on( 'click', function( e ) {
e.preventDefault();
$( '.choose-element-type-parent' ).hide();
} );
} );