Switch away from help tab when help sidebar becomes visible

This commit is contained in:
Anton Khorev 2024-08-08 06:30:35 +03:00
parent 8401cd0d14
commit a9fa756878

View file

@ -41,6 +41,9 @@ $(document).ready(function () {
$(".richtext_container .richtext_help_sidebar:visible:empty").each(function () {
var container = $(this).closest(".richtext_container");
container.find(".tab-pane[id$='_help']").children().appendTo($(this));
if (container.find("button[data-bs-target$='_help'].active").length) {
container.find("button[data-bs-target$='_edit']").tab("show");
}
});
};