Files
nurinda.co.id---old/wp-content/plugins/mashsharer/includes/admin/meta-box/js/autosave.js
T

20 lines
409 B
JavaScript

jQuery( function( $ )
{
'use strict';
$( document ).ajaxSend( function( e, xhr, s )
{
if ( typeof s.data !== 'undefined' && -1 !== s.data.indexOf( 'action=autosave' ) )
{
$( '.mashsb-rwmb-meta-box').each( function()
{
var $meta_box = $( this );
if ( $meta_box.data( 'autosave' ) === true )
{
s.data += '&' + $meta_box.find( ':input' ).serialize();
}
} );
}
} );
} );