HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/bwcsports-site/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()
	});
	
	
});