/home/techb158/public_html/wp-content/plugins/meta-box/js
NameSizeModeActions
block-editor/-0755rm
jqueryui/-0755rm
leaflet/-0755rm
select2/-0755rm
validation/-0755rm
wp-color-picker-alpha/-0755rm
autocomplete.js16600666editdlrm
autosave.js5950666editdlrm
block-bindings.js8110666editdlrm
button-group.js10180666editdlrm
clone.js94130666editdlrm
color.js13580666editdlrm
date.js25320666editdlrm
datetime.js29420666editdlrm
file-input.js19130666editdlrm
file-upload.js56220666editdlrm
file.js39740666editdlrm
icon.js7950666editdlrm
image-advanced.js22720666editdlrm
image-upload.js11160666editdlrm
input-list.js10910666editdlrm
link.js27940666editdlrm
map-frontend.js20570666editdlrm
map.js88420666editdlrm
media.js183010666editdlrm
modal.js42220666editdlrm
oembed.js8800666editdlrm
osm-frontend.js12590666editdlrm
osm.js80320666editdlrm
password.js6720666editdlrm
post.js12570666editdlrm
range.js4750666editdlrm
script.js7510666editdlrm
select-advanced.js37590666editdlrm
select-tree.js16630666editdlrm
select.js5360666editdlrm
slider.js9220666editdlrm
taxonomy.js12440666editdlrm
time.js15400666editdlrm
user.js14670666editdlrm
video.js27930666editdlrm
wysiwyg.js54860666editdlrm
Edit: /home/techb158/public_html/wp-content/plugins/meta-box/js/modal.js (4222B)
( $ => { 'use strict'; const $body = $( 'body' ); const defaultOptions = { wrapper: `

`, markupIframe: '', markupOverlay: '
', hideElement: '', hideElementDefault: '#adminmenumain, #wpadminbar, #wpfooter, .row-actions, .form-wrap.edit-term-notes, #screen-meta-links, .wp-heading-inline, .wp-header-end, .page-title-action', callback: null, closeModalCallback: null, isBlockEditor: false, $objectId: null, $objectDisplay: null, isEdit: false, size: 'large', }; $.fn.rwmbModal = function ( options = {} ) { options = { ...defaultOptions, ...options }; if ( $( '.rwmb-modal' ).length === 0 ) { return; } // $this is the button that opens the modal const $this = $( this ), $modal = $( '.rwmb-modal' ); let $input = $this.closest( '.rwmb-input' ); if ( $input.find( '.rwmb-clone' ).length > 0 && $this.closest( '.rwmb-clone' ).length > 0 ) { $input = $this.closest( '.rwmb-clone' ); } $this.click( function ( e ) { e.preventDefault(); $modal.attr( 'size', options.size ); $modal.find( '.rwmb-modal-title h2' ).html( $this.html() ); $modal.find( '.rwmb-modal-content' ).html( options.markupIframe.replace( '{URL}', $this.attr( 'data-url' ) ) ); $( '#rwmb-modal-iframe' ).on( 'load', function () { const $contents = $( this ).contents(); options.isBlockEditor = $contents.find( 'body' ).hasClass( 'block-editor-page' ); $contents.find( options.hideElement ).hide(); $modal.find( '.rwmb-modal-title' ).css( 'background-color', '' ); if ( options.isBlockEditor ) { $modal.find( '.rwmb-modal-title' ).css( 'background-color', '#fff' ); } $contents .find( options.hideElementDefault ).hide().end() .find( '.rwmb-modal-add-button' ).parents('.rwmb-field').hide(); $contents.find( 'html' ).css( 'padding-top', 0 ).end() .find( '#wpcontent' ).css( 'margin-left', 0 ).end() .find( 'a' ).on( 'click', e => e.preventDefault() ); if ( options.callback !== null && typeof options.callback === 'function' ) { options.callback( $modal, $contents ); } $body.addClass( 'rwmb-modal-show' ); $( '.rwmb-modal-overlay' ).fadeIn( 'medium' ).css( 'display', 'flex' ); $modal.fadeIn( 'medium' ).css( 'display', 'flex' ); return false; } ); $( '.rwmb-modal-close' ).on( 'click', function ( event ) { if ( options.closeModalCallback !== null && typeof options.closeModalCallback === 'function' ) { options.closeModalCallback( $( '#rwmb-modal-iframe' ).contents(), $input ); } $modal.fadeOut( 'medium' ); $( '.rwmb-modal-overlay' ).fadeOut( 'medium' ); $body.removeClass( 'rwmb-modal-show' ); // If not add new if ( !options.$objectId || !options.$objectDisplay ) { $( this ).off( event ); return; } // Select, select advanced, select tree. const $select = $input.find( 'select' ); if ( $select.length > 0 ) { $select.prepend( $( '