Import legacy nurinda.co.id website
This commit is contained in:
1 parent
3f59bb9038
commit
6e21646ac4
13389 files changed
+3246690
No files matched your search
@@ -0,0 +1,24 @@
|
||||
jQuery( function( $ )
|
||||
{
|
||||
'use strict';
|
||||
|
||||
$( '.mashsb-rwmb-oembed-wrapper .spinner' ).hide();
|
||||
|
||||
$( 'body' ).on( 'click', '.mashsb-rwmb-oembed-wrapper .show-embed', function() {
|
||||
var $this = $( this ),
|
||||
$spinner = $this.siblings( '.spinner' ),
|
||||
data = {
|
||||
action: 'rwmb_get_embed',
|
||||
url: $this.siblings( 'input' ).val()
|
||||
};
|
||||
|
||||
$spinner.show();
|
||||
$.post( ajaxurl, data, function( r )
|
||||
{
|
||||
$spinner.hide();
|
||||
$this.siblings( '.embed-code' ).html( r.data );
|
||||
}, 'json' );
|
||||
|
||||
return false;
|
||||
} );
|
||||
} );
|
||||
Reference in new issue
Block a user