portico: Inline common.autofocus.

This was only called from a single code path.
This commit is contained in:
Tim Abbott
2023-10-26 14:49:40 -07:00
parent d27a50852e
commit a379fbe442
3 changed files with 2 additions and 16 deletions

View File

@@ -6,13 +6,6 @@ import {$t} from "./i18n";
export const status_classes = "alert-error alert-success alert-info alert-warning alert-loading";
// TODO: Move this to the portico codebase.
export function autofocus($elem: JQuery): void {
$(() => {
$elem.trigger("focus");
});
}
export function phrase_match(query: string, phrase: string): boolean {
// match "tes" to "test" and "stream test" but not "hostess"
let i;