diff options
| author | karl <noreply@maennchen1.de> | 2019-09-02 13:21:12 +0000 |
|---|---|---|
| committer | karl <noreply@maennchen1.de> | 2019-09-02 13:21:12 +0000 |
| commit | f2eacf3dc017781a87f192a79cd43f647eb8c6e2 (patch) | |
| tree | dad61f24c10fb79493f28fc15c7d00a027e7de52 /views | |
| parent | 33a005537664c45b6d99e6c4208b9dbf5e9dff3c (diff) | |
Korrektur Produktverwaltung
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7517 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views')
| -rw-r--r-- | views/produkt/addedit.phtml | 16 |
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();
+
+ }
} );
|
