mirror of https://github.com/zulip/zulip.git
plans: Ensure linked comparison tables scroll into view.
This commit is contained in:
parent
960e29dc5a
commit
7ea313c658
|
@ -154,6 +154,11 @@ $(() => {
|
|||
// table, but when it's present, make sure to align the
|
||||
// comparison table with the current active plans tab
|
||||
if ($comparison_table.length > 0) {
|
||||
// Make sure that links coming from elsewhere scroll
|
||||
// to the comparison table
|
||||
if (target_hash.includes("plan-comparison")) {
|
||||
document.querySelector(target_hash).scrollIntoView();
|
||||
}
|
||||
const plans_columns_count = tab_to_show.slice(1) === "self-hosted" ? 4 : 3;
|
||||
|
||||
// Set the correct values for span and colspan
|
||||
|
|
Loading…
Reference in New Issue