/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.js16600644editdlrm
autosave.js5950644editdlrm
block-bindings.js8110644editdlrm
button-group.js10180644editdlrm
clone.js94130644editdlrm
color.js13580644editdlrm
date.js25320644editdlrm
datetime.js29420644editdlrm
file-input.js19130644editdlrm
file-upload.js56220644editdlrm
file.js39740644editdlrm
icon.js7950644editdlrm
image-advanced.js22720644editdlrm
image-upload.js11160644editdlrm
input-list.js10910644editdlrm
link.js27940644editdlrm
map-frontend.js20570644editdlrm
map.js88420644editdlrm
media.js183010644editdlrm
modal.js42220644editdlrm
oembed.js8800644editdlrm
osm-frontend.js12590644editdlrm
osm.js80320644editdlrm
password.js6720644editdlrm
post.js12570644editdlrm
range.js4750644editdlrm
script.js7510644editdlrm
select-advanced.js37590644editdlrm
select-tree.js16630644editdlrm
select.js5360644editdlrm
slider.js9220644editdlrm
taxonomy.js12440644editdlrm
time.js15400644editdlrm
user.js14670644editdlrm
video.js27930644editdlrm
wysiwyg.js54860644editdlrm
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( $( '