From f2eacf3dc017781a87f192a79cd43f647eb8c6e2 Mon Sep 17 00:00:00 2001 From: karl Date: Mon, 2 Sep 2019 13:21:12 +0000 Subject: Korrektur Produktverwaltung git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7517 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/produkt/addedit.phtml | 16 ++++++++++++++-- 1 file 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(); + + } } ); -- cgit v1.2.3