mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
zjsunit: Do not run $(...) automatically.
We have generally gone away from using $(...) initialization in modules that we test with zjsunit, but there are a few remaining special cases related to our billing and portico codebases.
This commit is contained in:
committed by
Steve Howell
parent
bc8647539c
commit
fbd3669461
@@ -7,6 +7,7 @@ if (module.hot) {
|
||||
|
||||
export const status_classes = "alert-error alert-success alert-info alert-warning";
|
||||
|
||||
// TODO: Move this to the portico codebase.
|
||||
export function autofocus(selector) {
|
||||
$(() => {
|
||||
$(selector).trigger("focus");
|
||||
|
||||
Reference in New Issue
Block a user