Subversion Repositories wpShopGermany4

Rev

Rev 5583 | Rev 6165 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5767 daniel 1
 
2
    function wpsg_mod_productvariants_reload(event)
3
    {
4
 
5
        var product_index = jQuery(event.target).parents('.wpsg_mod_productvariants_product_wrap').attr('wpsg-productindex');
6
 
7
        //jQuery('#wpsg_produktform_' + product_index).append('<div class="wpsg_product_layer"><img src="' + wpsg_ajax.img_ajaxloading + '" alt="' + wpsg_ajax.label_pleasewait + '" /></div>');
8
 
9
		jQuery.ajax( {
10
			'url': wpsg_ajax.ajaxurl,
11
			'method': 'get',
12
			'data': {
13
				'action': 'wpsg_productvariants_switch',
14
				'wpsg_post_id': jQuery('#wpsg_produktform_' + product_index + ' input[name="wpsg_post_id"]').val(),
15
				'form_data': jQuery('#wpsg_produktform_' + product_index).serialize(),
16
				'product_index': product_index
17
			},
18
			'success': function(data) {
19
 
20
				jQuery('#wpsg_produktform_' + product_index).replaceWith(data);
21
 
22
			}
23
		} );
24
 
25
    } // function wpsg_mod_productvariants_reload(event)