function add_preset(id, name) {
			// Prepare shortcode name and current settings
			var shortcode = $('.cherry-generator-presets').data('shortcode'),
				settings = get();
			// Perform AJAX request
			$.ajax({
				type: 'POST',
				url: ajaxurl,
				data: {
					action: 'cherry_shortcodes_generator_add_preset',
					id: id,
					name: name,
					shortcode: shortcode,
					settings: settings
				}
			});
		}
/**
	 * Create new preset with specified name from current settings
	 */
Create new preset with specified name from current settings
Create new preset with specified name from current settings
function add_preset(id, name) {
			var shortcode = $('.cherry-generator-presets').data('shortcode'),
				settings = get();
			$.ajax({
				type: 'POST',
				url: ajaxurl,
				data: {
					action: 'cherry_shortcodes_generator_add_preset',
					id: id,
					name: name,
					shortcode: shortcode,
					settings: settings
				}
			});
		}
function add_preset ( id , name ) { var shortcode = $ ( '.cherry-generator-presets' ) . data ( 'shortcode' ) , settings = get ( ) ; $ . ajax ( { type : 'POST' , url : ajaxurl , data : { action : 'cherry_shortcodes_generator_add_preset' , id : id , name : name , shortcode : shortcode , settings : settings } } ) ; }
Create new preset with specified name from current settings
Create new preset with specified name from current settings
// Prepare shortcode name and current settings // Perform AJAX request