diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2017-09-04 06:34:12 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2017-09-04 06:34:12 +0000 |
| commit | 73f68f75e2d884e0184eb305f47b3dcc3308d756 (patch) | |
| tree | e4645d199da74063a9ada3e4954ef07dfcce76b9 /views | |
| parent | 0ccd23f52859f01c59ea3fdeba4004091612f8d5 (diff) | |
Snorflex Korrekturen
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6442 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views')
| -rw-r--r-- | views/mods/mod_productview/productview.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/views/mods/mod_productview/productview.js b/views/mods/mod_productview/productview.js index 97483cd..76cb7f4 100644 --- a/views/mods/mod_productview/productview.js +++ b/views/mods/mod_productview/productview.js @@ -52,6 +52,7 @@ 'success': function(data) {
jQuery('#wpsg_productview_' + index).replaceWith(data);
+
wpsg_correctProductview(index);
}
@@ -64,9 +65,15 @@ function wpsg_correctProductview(index)
{
+ var atts = jQuery.parseJSON(jQuery('#wpsg_productview_' + index + ' input[name="wpsg_atts"]').val());
+
+ if (atts.mode === 'list') jQuery('.wpsg_productview_product_grid').show(0);
+
var max_height = 0; jQuery('#wpsg_productview_' + index + ' .wpsg_productview_product_grid .wpsg_mod_productview_name').each(function() { if (jQuery(this).outerHeight() > max_height) max_height = jQuery(this).outerHeight(); } ).outerHeight(max_height);
var max_height = 0; jQuery('#wpsg_productview_' + index + ' .wpsg_productview_product_grid .wpsg_mod_productview_description').each(function() { if (jQuery(this).outerHeight() > max_height) max_height = jQuery(this).outerHeight(); } ).outerHeight(max_height);
+ if (atts.mode === 'list') jQuery('.wpsg_productview_product_grid').hide(0);
+
// Sortierungslayer
jQuery('.wpsg_mod_productview-order').bind('click', function(event) {
@@ -119,7 +126,7 @@ jQuery('.wpsg_mod_productview_modeswitch a').removeClass('active');
jQuery(this).addClass('active');
-
+
return false;
} );
|
