| Server IP : 159.69.118.108 / Your IP : 216.73.216.200 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ubuntu-4gb-fsn1-1 6.8.0-90-generic #91-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 18 13:53:54 UTC 2025 aarch64 User : root ( 0) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/clients/deborahrobinson.net/wp-content/plugins/meta-box/js/ |
Upload File : |
( function ( $, rwmb ) {
'use strict';
function addNew() {
$( this ).rwmbModal( {
hideElement: '#editor .interface-interface-skeleton__footer, .edit-post-fullscreen-mode-close',
callback: function ( $modal, $modalContent ) {
$modalContent.find( 'body' ).addClass( 'is-fullscreen-mode' );
// Retry if the first statement fail
setTimeout( () => {
$modalContent.find( 'body' ).addClass( 'is-fullscreen-mode' );
}, 500 );
},
closeModalCallback: function ( $modal, $input ) {
const objectId = $modal.find( '#post_ID' ).val();
const objectDisplay = !this.isBlockEditor ? $modal.find( '#title' ).val() : $modal.find( 'h1.editor-post-title' ).text();
if ( !objectId ) {
return;
}
this.$objectId = objectId;
this.$objectDisplay = objectDisplay;
}
} );
}
function init( e ) {
const wrapper = e.target || e;
$( wrapper ).find( '.rwmb-post-add-button' ).each( addNew );
}
rwmb.$document
.on( 'mb_ready', init )
.on( 'clone', function ( e ) {
init( $( e.target ).parent() );
} );
} )( jQuery, rwmb );