Fix tab js bug.

This commit is contained in:
BoHung Chiu 2023-04-28 09:42:24 +08:00
parent 6abc8e9c74
commit 742382ed67
2 changed files with 4 additions and 4 deletions

View File

@ -2735,7 +2735,7 @@ $.fn.wpexEqualHeights = function (options) {
}
if($(container_text_arr[i]).parents(window.wpexAnimsition.need_fix_containers).length != 0){
if(!window.already_changes[i]){
var $filter = $container.parent().find(window.wpexAnimsition.filter_bar);
var $filter = $container.parents(window.wpexAnimsition.parent_block).find(window.wpexAnimsition.filter_bar);
var $filterLinks = $filter.find(window.wpexAnimsition.filter_option);
var $divs = [];
$filterLinks.each(function (i,v) {
@ -2771,7 +2771,7 @@ $.fn.wpexEqualHeights = function (options) {
$div.attr('id',vv.slice(1));
rm_attr = 'id';
}
var linkElements = $container.parent().find(window.wpexAnimsition.linkElement).filter(vv);
var linkElements = $container.parents(window.wpexAnimsition.parent_block).find(window.wpexAnimsition.linkElement).filter(vv);
if(linkElements.length != 0){
var parents_elements = window.wpexAnimsition.linkElement.split(/>| /).slice(0,-1).filter(function(v){return v!=""});
parents_elements = parents_elements.reverse();
@ -2854,7 +2854,7 @@ $.fn.wpexEqualHeights = function (options) {
var activeItems;
// Filter links
var $filter = $container.parent().find(window.wpexAnimsition.filter_bar);
var $filter = $container.parents(window.wpexAnimsition.parent_block).find(window.wpexAnimsition.filter_bar);
if ($filter.length) {
var $filterLinks = $filter.find(window.wpexAnimsition.filter_option);
activeItems = '';

File diff suppressed because one or more lines are too long