Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

helpers: Remove dead bootstrap tabs code.

Aman Agrawal70ecdf2add2b
diff --git a/web/src/billing/helpers.ts b/web/src/billing/helpers.ts
index 7717e493d3d..d49b4557d22 100644
--- a/web/src/billing/helpers.ts
+++ b/web/src/billing/helpers.ts
@@ -148,28 +148,6 @@ export function update_discount_details(
$("#sponsorship-discount-details").text(discount_notice);
}
-let current_page: string;
-
-function handle_hashchange(): void {
- $(`#${CSS.escape(current_page)}-tabs.nav a[href="${CSS.escape(location.hash)}"]`).tab("show");
- $("html").scrollTop(0);
-}
-
-export function set_tab(page: string): void {
- const hash = location.hash;
- if (hash) {
- $(`#${CSS.escape(page)}-tabs.nav a[href="${CSS.escape(hash)}"]`).tab("show");
- $("html").scrollTop(0);
- }
-
- $<HTMLAnchorElement>(`#${CSS.escape(page)}-tabs.nav-tabs a`).on("click", function () {
- location.hash = this.hash;
- });
-
- current_page = page;
- window.addEventListener("hashchange", handle_hashchange);
-}
-
export function is_valid_input(elem: JQuery<HTMLFormElement>): boolean {
return elem[0].checkValidity();
}