Made tab panel selector more specific to avoid theme conflicts.

This commit is contained in:
Mike Jolley 2015-08-11 10:46:21 +01:00
parent 42e99286c7
commit 03f16d6833
2 changed files with 4 additions and 3 deletions

View File

@ -9,7 +9,7 @@ jQuery( function( $ ) {
// Tabs
$( '.wc-tabs-wrapper, .woocommerce-tabs' )
.on( 'init', function() {
$( '.wc-tab, .panel:not(.panel .panel)' ).hide();
$( '.wc-tab, .woocommerce-tabs .panel:not(.panel .panel)' ).hide();
var hash = window.location.hash;
var url = window.location.href;
@ -29,7 +29,7 @@ jQuery( function( $ ) {
var $tabs = $tabs_wrapper.find( '.wc-tabs, ul.tabs' );
$tabs.find( 'li' ).removeClass( 'active' );
$tabs_wrapper.find( '.wc-tab, .panel:not(.panel .panel)' ).hide();
$tabs_wrapper.find( '.wc-tab, .woocommerce-tabs .panel:not(.panel .panel)' ).hide();
$tab.closest( 'li' ).addClass( 'active' );
$tabs_wrapper.find( $tab.attr( 'href' ) ).show();

View File

@ -159,8 +159,9 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
== Changelog ==
* Tweak - If all variations are out of stock, maintain pricing.
* Fix - If all variations are out of stock, maintain pricing display.
* Tweak - If no variation prices are found, show no price label rather than free.
* Tweak - Made tab panel selector more specific to avoid theme conflicts.
= 2.4.1 - 10/08/2015 =
* Fix - Tweaked the 2.4 upgrade routine to disable refund emails during update.