diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2016-09-21 10:55:51 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2016-09-21 10:55:51 +0000 |
| commit | 24cc55213fa39bd2c2e3215943f22bef731e58fb (patch) | |
| tree | 6156aa9a60ab7ab72183c274a50c39e44404e99a /views/mods/mod_productvariants/frontend.js | |
| parent | e9cd93a5ba05b1f2b1216aba0fba86ac5977beaf (diff) | |
- Select im Editable zeigt gesetzten Wert
- Varianten im Frontend angezeigt und schalten Produkt um
- Warnungen raus
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5767 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_productvariants/frontend.js')
| -rw-r--r-- | views/mods/mod_productvariants/frontend.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/views/mods/mod_productvariants/frontend.js b/views/mods/mod_productvariants/frontend.js index e69de29..a6d62fa 100644 --- a/views/mods/mod_productvariants/frontend.js +++ b/views/mods/mod_productvariants/frontend.js @@ -0,0 +1,25 @@ +
+ function wpsg_mod_productvariants_reload(event)
+ {
+
+ var product_index = jQuery(event.target).parents('.wpsg_mod_productvariants_product_wrap').attr('wpsg-productindex');
+
+ //jQuery('#wpsg_produktform_' + product_index).append('<div class="wpsg_product_layer"><img src="' + wpsg_ajax.img_ajaxloading + '" alt="' + wpsg_ajax.label_pleasewait + '" /></div>');
+
+ jQuery.ajax( {
+ 'url': wpsg_ajax.ajaxurl,
+ 'method': 'get',
+ 'data': {
+ 'action': 'wpsg_productvariants_switch',
+ 'wpsg_post_id': jQuery('#wpsg_produktform_' + product_index + ' input[name="wpsg_post_id"]').val(),
+ 'form_data': jQuery('#wpsg_produktform_' + product_index).serialize(),
+ 'product_index': product_index
+ },
+ 'success': function(data) {
+
+ jQuery('#wpsg_produktform_' + product_index).replaceWith(data);
+
+ }
+ } );
+
+ } // function wpsg_mod_productvariants_reload(event)
\ No newline at end of file |
