diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2016-03-30 07:44:56 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2016-03-30 07:44:56 +0000 |
| commit | 2a499aa2df04ddc011abade881c2506e3d2b7f58 (patch) | |
| tree | 445cb75c9036f9f8a7215f8046ef762bb1cbc488 /views/mods/mod_productview/productview.js | |
| parent | 25872272e8a7433b257300fe09fec94fe0fd6d81 (diff) | |
- Fehler beseitigt, der das Backend langsam gemacht hat
- Produktartikel in Produktverwaltung integriert und Einstellungen schön gemacht
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5451 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_productview/productview.js')
| -rw-r--r-- | views/mods/mod_productview/productview.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/views/mods/mod_productview/productview.js b/views/mods/mod_productview/productview.js index 54a9df6..89704d7 100644 --- a/views/mods/mod_productview/productview.js +++ b/views/mods/mod_productview/productview.js @@ -19,6 +19,7 @@ 'success': function(data) {
jQuery('#wpsg_productview_' + index).replaceWith(data);
+ wpsg_correctProductview(index);
}
} );
@@ -26,4 +27,23 @@ return false;
}
+
+ function wpsg_correctProductview(index)
+ {
+
+ var max_height = 0; jQuery('#wpsg_productview_' + index + ' .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_mod_productview_description').each(function() { if (jQuery(this).outerHeight() > max_height) max_height = jQuery(this).outerHeight(); } ).outerHeight(max_height);
+
+ }
+
+ jQuery(document).ready(function() {
+
+ jQuery('.wpsg_productview').each(function() {
+
+ var x = jQuery(this).attr("id").substr(17);
+ wpsg_correctProductview(x);
+
+ } );
+
+ } );
\ No newline at end of file |
