summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/produkt/addedit.phtml16
1 files changed, 14 insertions, 2 deletions
diff --git a/views/produkt/addedit.phtml b/views/produkt/addedit.phtml
index c937817..5ecbd68 100644
--- a/views/produkt/addedit.phtml
+++ b/views/produkt/addedit.phtml
@@ -90,17 +90,29 @@
jQuery(document).ready(function() {
jQuery('#wpsg_product_tabs a.list-group-item').bind('click', function() {
-
+
jQuery('#wpsg_product_tabs a').removeClass('active');
jQuery('.wpsg_product_tab_content').hide();
jQuery(this).addClass('active');
jQuery('#' + jQuery(this).attr('wpsg-data-target')).show();
-
+
jQuery.cookie('wpsg_product_addedit_tab', jQuery(this).attr('wpsg-data-target'));
jQuery(this).blur();
} );
+
+ //Anzahl aktive ermitteln
+ //alert( jQuery('#wpsg_product_tabs a.list-group-item.active').length );
+
+ //Erstes anklicken
+ //jQuery('#wpsg_product_tabs a.list-group-item').first().click();
+
+ if (jQuery('#wpsg_product_tabs a.list-group-item.active').length < 1) {
+
+ jQuery('#wpsg_product_tabs a.list-group-item').first().click();
+
+ }
} );