function renameCategoryFunc( id ) {
	jQuery( '#elex-multi-vendor-for-woocommerce-add-rename' ).addClass( 'active' );

	var edit_page_link = elex_mv_admin_ajaxurl_object.ajax_url;
	edit_page_link = edit_page_link + '?action=elex_mv_rename_display';
	var form = {
		id: id,
		nonce: jQuery( '#elex-page-nonce' ).val(),
	};
	jQuery.ajax( {
		url: edit_page_link,
		type: 'POST',
		data: form,
		enctype: 'multipart/form-data',
		success: function( result ) {
			jQuery( '#category-current-id' ).attr( 'value', id );
			jQuery( '#category-current-name' ).val( result.data.category_name );
		},
	} );
}

function deleteCategoryFunc( id ) {
	var additem = document.getElementById( 'wsdesk_delete_category_toast' );
	jQuery( '#elex-multi-vendor-for-woocommerce-delete-cat-confirm-btn' ).val( id );
	var toast = new bootstrap.Toast( additem );
	toast.show();
}
