Server IP : 66.29.132.124 / Your IP : 3.15.26.184 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/blog.diixadigital.com/wp-content/plugins/meta-box/js/ |
Upload File : |
( function ( $, _, rwmb ) { 'use strict'; /** * Show preview of oembeded media. */ function showPreview( e ) { e.preventDefault(); var $this = $( this ), $spinner = $this.siblings( '.spinner' ), data = { action: 'rwmb_get_embed', url: this.value, _ajax_nonce: rwmbOembed.nonce, not_available: $this.data( 'not-available' ), }; $spinner.css( 'visibility', 'visible' ); $.post( ajaxurl, data, function ( response ) { $spinner.css( 'visibility', 'hidden' ); $this.siblings( '.rwmb-embed-media' ).html( response.data ); }, 'json' ); } /** * Remove oembed preview when cloning. */ function removePreview() { $( this ).siblings( '.rwmb-embed-media' ).html( '' ); } rwmb.$document .on( 'change', '.rwmb-oembed', _.debounce( showPreview, 250 ) ) .on( 'clone', '.rwmb-oembed', removePreview ); } )( jQuery, _, rwmb );