![]() 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'; var views = rwmb.views = rwmb.views || {}, ImageField = views.ImageField, ImageUploadField, UploadButton = views.UploadButton; ImageUploadField = views.ImageUploadField = ImageField.extend( { createAddButton: function () { this.addButton = new UploadButton( {controller: this.controller} ); } } ); function initImageUpload() { var $this = $( this ), view = $this.data( 'view' ); if ( view ) { return; } view = new ImageUploadField( { input: this } ); $this.siblings( '.rwmb-media-view' ).remove(); $this.after( view.el ); // Init uploader after view is inserted to make wp.Uploader works. view.addButton.initUploader( $this ); $this.data( 'view', view ); } function init( e ) { $( e.target ).find( '.rwmb-image_upload, .rwmb-plupload_image' ).each( initImageUpload ); } rwmb.$document .on( 'mb_ready', init ) .on( 'clone', '.rwmb-image_upload, .rwmb-plupload_image', initImageUpload ) } )( jQuery, rwmb );