HEX
Server: Apache
System: Linux webm006.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: slyfwmm (169339)
PHP: 8.1.34
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/slyfwmm/foar/wp-content/themes/flexfit/framework/functions/meta-box/js/image.js
jQuery( document ).ready( function($)
{
	// Reorder images
	$( '.rwmb-images' ).each( function()
	{
		var $this		= $(this),
			field_id	= $this.parents( '.rwmb-field' ).find( '.field-id' ).val(),
			data		= {
				action  : 'rwmb_reorder_images',
				_wpnonce: $('#nonce-reorder-images_' + field_id).val(),
				post_id : $('#post_ID').val(),
				field_id: field_id
			};
		$this.sortable(
		{
			placeholder: 'ui-state-highlight',
			items: 'li',
			update: function () {
				data.order = $this.sortable( 'serialize' );

				$.post( ajaxurl, data, function( r )
				{
					var res = wpAjax.parseAjaxResponse( r, 'ajax-response' );
					if ( res.errors )
						alert( res.responses[0].errors[0].message );
				}, 'xml' );
			}
		} );
	} );
} );