Subversion Repositories wpShopGermany4

Rev

Rev 6136 | Rev 7841 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6136 Rev 6454
Line 71... Line 71...
71
		
71
		
72
        return false;
72
        return false;
73
		
73
		
74
	} // function wpsg_mod_productvariants_del(variant_id)
74
	} // function wpsg_mod_productvariants_del(variant_id)
75
 
75
 
76
	function wpsg_mod_productvariation_del(variation_id)
76
	function wpsg_mod_productvariation_del(product_id, variation_id)
77
	{
77
	{
78
 
78
 
79
		if (!confirm('<?php echo __('Sind Sie sich sicher, dass Sie die Variation löschen möchten?', 'wpsg'); ?>')) return false;
79
		if (!confirm('<?php echo __('Sind Sie sich sicher, dass Sie die Variation löschen möchten?', 'wpsg'); ?>')) return false;
80
 
80
 
81
		var vari_id = jQuery('#wpsg_mod_productvariants_var_id').val();
81
		var vari_id = jQuery('#wpsg_mod_productvariants_var_id').val();
Line 85... Line 85...
85
		
85
		
86
		jQuery.ajax( {
86
		jQuery.ajax( {
87
			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_productvariants&noheader=1',
87
			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_productvariants&noheader=1',
88
			data: {  
88
			data: {  
89
				'subaction': 'admin_variation_del',
89
				'subaction': 'admin_variation_del',
-
 
90
				'product_id': product_id,
90
				'variation_id': variation_id,
91
				'variation_id': variation_id,
91
				'variant_id': vari_id
92
				'variant_id': vari_id
92
			},
93
			},
93
			success: function(data) { 
94
			success: function(data) { 
94
				
95