jQuery(document).ready(function ($) {
	jQuery('select#oddw_driver_id').change(function(e) {
		var item_id =  $(this).attr('name');
		var metakey =  $(this).attr('id');
		var metavalue = this.value;
		$.post(oddw_ajax.ajaxurl,{
			action : 'oddw_delivery_driver_settings',
			item_id : item_id,
			metakey : metakey,
			metavalue : metavalue
//		},
//		function(data, status) {
//			console.log("Data: " + data + "\nStatus: " + status);
		});
	});
});

// Remove the link click wrapper on WooCommerce Edit Orders screen.
jQuery(document).ready(function ($) {
	$('td.delivery_driver.column-delivery_driver a').click(function(){ return false });
});
