Merge pull request #15029 from vinoddalvi/master
Resolved the issue - Allow linking to single product additional_information tab from url hash #15016
This commit is contained in:
commit
2774c8dc28
|
@ -19,6 +19,8 @@ jQuery( function( $ ) {
|
||||||
$tabs.find( 'li.reviews_tab a' ).click();
|
$tabs.find( 'li.reviews_tab a' ).click();
|
||||||
} else if ( url.indexOf( 'comment-page-' ) > 0 || url.indexOf( 'cpage=' ) > 0 ) {
|
} else if ( url.indexOf( 'comment-page-' ) > 0 || url.indexOf( 'cpage=' ) > 0 ) {
|
||||||
$tabs.find( 'li.reviews_tab a' ).click();
|
$tabs.find( 'li.reviews_tab a' ).click();
|
||||||
|
} else if ( hash === '#tab-additional_information' ) {
|
||||||
|
$tabs.find( 'li.additional_information_tab a' ).click();
|
||||||
} else {
|
} else {
|
||||||
$tabs.find( 'li:first a' ).click();
|
$tabs.find( 'li:first a' ).click();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue