dependencies: Upgrade JavaScript dependencies.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2020-12-09 14:43:53 -08:00
parent 710bb4357e
commit 984a5bb737
5 changed files with 836 additions and 1024 deletions

View File

@ -91,7 +91,7 @@
"babel-plugin-rewire-ts": "^1.4.0",
"difflib": "^0.2.4",
"eslint": "^7.2.0",
"eslint-config-prettier": "^6.11.0",
"eslint-config-prettier": "^7.0.0",
"eslint-import-resolver-webpack": "^0.13.0",
"eslint-plugin-import": "^2.22.0",
"js-yaml": "^3.13.1",

View File

@ -48,20 +48,22 @@ const DropdownListWidget = function (opts) {
};
const register_event_handlers = () => {
$(`#${opts.container_id} .dropdown-list-body`).on("click keypress", ".list_item", function (
e,
) {
const setting_elem = $(this).closest(`.${opts.widget_name}_setting`);
if (e.type === "keypress") {
if (e.which === 13) {
setting_elem.find(".dropdown-menu").dropdown("toggle");
} else {
return;
$(`#${opts.container_id} .dropdown-list-body`).on(
"click keypress",
".list_item",
function (e) {
const setting_elem = $(this).closest(`.${opts.widget_name}_setting`);
if (e.type === "keypress") {
if (e.which === 13) {
setting_elem.find(".dropdown-menu").dropdown("toggle");
} else {
return;
}
}
}
const value = $(this).attr("data-value");
update(value);
});
const value = $(this).attr("data-value");
update(value);
},
);
$(`#${opts.container_id} .dropdown_list_reset_button`).on("click", (e) => {
update(opts.null_value);
e.preventDefault();

View File

@ -126,15 +126,16 @@ $(() => {
},
});
$(".register-page #email, .login-page-container #id_username").on("focusout keydown", function (
e,
) {
// check if it is the "focusout" or if it is a keydown, then check if
// the keycode was the one for "enter" (13).
if (e.type === "focusout" || e.which === 13) {
$(this).val($(this).val().trim());
}
});
$(".register-page #email, .login-page-container #id_username").on(
"focusout keydown",
function (e) {
// check if it is the "focusout" or if it is a keydown, then check if
// the keycode was the one for "enter" (13).
if (e.type === "focusout" || e.which === 13) {
$(this).val($(this).val().trim());
}
},
);
const show_subdomain_section = function (bool) {
const action = bool ? "hide" : "show";

View File

@ -43,4 +43,4 @@ API_FEATURE_LEVEL = 35
# historical commits sharing the same major version, in which case a
# minor version bump suffices.
PROVISION_VERSION = '116.1'
PROVISION_VERSION = '117.0'

1809
yarn.lock

File diff suppressed because it is too large Load Diff