subtab bug fix
This commit is contained in:
parent
751de46b7b
commit
9d57da7061
|
|
@ -69,3 +69,12 @@
|
||||||
.sub-tab-container.nav > li[style*="display: none"] {
|
.sub-tab-container.nav > li[style*="display: none"] {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Класс для скрытия контейнера субтабов */
|
||||||
|
.sub-tab-container.subtab-hidden {
|
||||||
|
display: none !important;
|
||||||
|
visibility: hidden !important;
|
||||||
|
pointer-events: none !important;
|
||||||
|
height: 0 !important;
|
||||||
|
overflow: hidden !important;
|
||||||
|
}
|
||||||
|
|
@ -189,9 +189,9 @@ function setup_custom_subtabs(wrapper, currentDoctype) {
|
||||||
wrapper.find(".sub-tab-container").each(function() {
|
wrapper.find(".sub-tab-container").each(function() {
|
||||||
const containerParentId = $(this).attr("data-parent-id");
|
const containerParentId = $(this).attr("data-parent-id");
|
||||||
if (containerParentId === tabId) {
|
if (containerParentId === tabId) {
|
||||||
$(this).show();
|
$(this).removeClass("subtab-hidden");
|
||||||
} else {
|
} else {
|
||||||
$(this).hide();
|
$(this).addClass("subtab-hidden");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue