Move help card between pane/sidebar depending on sidebar visibility
This commit is contained in:
parent
fb0f955651
commit
8401cd0d14
2 changed files with 16 additions and 2 deletions
|
@ -32,4 +32,18 @@ $(document).ready(function () {
|
|||
|
||||
preview.css("min-height", minHeight + "px");
|
||||
});
|
||||
|
||||
var updateHelp = function () {
|
||||
$(".richtext_container .richtext_help_sidebar:not(:visible):not(:empty)").each(function () {
|
||||
var container = $(this).closest(".richtext_container");
|
||||
$(this).children().appendTo(container.find(".tab-pane[id$='_help']"));
|
||||
});
|
||||
$(".richtext_container .richtext_help_sidebar:visible:empty").each(function () {
|
||||
var container = $(this).closest(".richtext_container");
|
||||
container.find(".tab-pane[id$='_help']").children().appendTo($(this));
|
||||
});
|
||||
};
|
||||
|
||||
updateHelp();
|
||||
$(window).on("resize", updateHelp);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue