HEX
Server: nginx/1.24.0
System: Linux webserver 6.8.0-87-generic #88-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 09:28:41 UTC 2025 x86_64
User: wpuser (1002)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /opt/wpsites/datacloudnow.com/wp-content/themes/salient/nectar/assets/js/nectar-reorder.js
/**
 * Salient sortable reordering.
 *
 * @package Salient
 * @author ThemeNectar
 */
 /* global jQuery */
 
jQuery(function($){
	
	"use strict";
	
	$('#sortable-table tbody').sortable({
		axis: 'y',
		handle: '.column-order img',
		placeholder: 'ui-state-highlight',
		forcePlaceholderSize: true,
		update: function(event, ui) {
			var theOrder = $(this).sortable('toArray');
			var nonce = $('#nectar_meta_box_nonce').attr('value');
			var data = {
				action: 'nectar_update_slide_order',
				postType: $(this).attr('data-post-type'),
				order: theOrder,
				nectar_meta_box_nonce: nonce
			};
			$.post(ajaxurl,data);
		}
	}).disableSelection();
	

	if($('td.post-title').parent().hasClass('type-home_slider') || $('td.post-title').parent().hasClass('type-nectar_slider')) {
		$('th#title, th.column-title').html('<span>Actions</span>');
	}
	
	$('.slider-locations #slider-locations').chosen();
	
	$('.slider-locations #slider-locations').on('change',function(){
		window.location = $(this).parents('.wrap').attr('data-base-url') + '&slider-location='+$(this).val()
	});
	
	
});