HEX
Server: Apache
System: Linux webd003.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/thickbox-image.js
jQuery( document ).ready( function($)
{
	// Reorder images
	$( '.rwmb-thickbox-upload' ).click( function()
	{
		var $this = $(this),
			$holder = $this.siblings( '.rwmb-images' ),
			post_id = $('#post_ID').val(),
			field_id = $this.attr('rel'),
			backup = window.send_to_editor;
		window.send_to_editor = function(html) {
			var $img = $('<div />').append(html).find('img'),
				url = $img.attr('src'),
				img_class = $img.attr('class'),
				id = parseInt(img_class.replace(/\D/g, ''), 10);

			html = '<li id="item_' + id + '">';
			html += '<img src="' + url + '" />';
			html += '<div class="rwmb-image-bar">';
			html += '<a class="rwmb-delete-file" href="#" rel="' + id + '">Delete</a>';
			html += '</div>';
			html += '<input type="hidden" name="' + field_id + '[]" value="' + id + '" />';
			html += '</li>';

			$holder.append($(html)).removeClass('hidden');

			tb_remove();
			window.send_to_editor = backup;
		}
		tb_show('', 'media-upload.php?post_id=' + post_id + '&TB_iframe=true');

		return false;
	} );
} );