![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/walla3t.corals.io/wp-content/plugins/meta-box/js/ |
( function ( $, rwmb ) { 'use strict'; function addNew() { const $this = $( this ); $this.rwmbModal( { removeElement: '.form-wrap > h2', callback: function ( $modal, $modalContent ) { $modalContent.find( '#col-right' ).css( 'display', 'none' ); $modalContent.find( '.search-box' ).css( 'display', 'none' ); $modalContent.find( '#wpbody' ).css( 'padding-top', 0 ); $modal.css( { 'max-width': '480px', 'margin': 'auto', } ); }, closeModalCallback: function ( $modal, $input ) { if ( $modal.find( '#the-list tr:first td:eq(0) .row-actions' ).length > 0 ) { this.$objectId = parseInt( $modal.find( '#the-list tr:first' ).attr( 'id' ).split( '-' )[ 1 ] ); this.$objectDisplay = $modal.find( '#the-list tr:first td:eq(0) strong a' ).text(); } } } ); } function init( e ) { const wrapper = e.target || e; $( wrapper ).find( '.rwmb-taxonomy-add-button' ).each( addNew ); } rwmb.$document .on( 'mb_ready', init ) .on( 'clone', function ( e ) { init( $( e.target ).parent() ); } ); } )( jQuery, rwmb );