mirror of https://github.com/zulip/zulip.git
dependencies: Upgrade JavaScript dependencies.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
710bb4357e
commit
984a5bb737
|
@ -91,7 +91,7 @@
|
||||||
"babel-plugin-rewire-ts": "^1.4.0",
|
"babel-plugin-rewire-ts": "^1.4.0",
|
||||||
"difflib": "^0.2.4",
|
"difflib": "^0.2.4",
|
||||||
"eslint": "^7.2.0",
|
"eslint": "^7.2.0",
|
||||||
"eslint-config-prettier": "^6.11.0",
|
"eslint-config-prettier": "^7.0.0",
|
||||||
"eslint-import-resolver-webpack": "^0.13.0",
|
"eslint-import-resolver-webpack": "^0.13.0",
|
||||||
"eslint-plugin-import": "^2.22.0",
|
"eslint-plugin-import": "^2.22.0",
|
||||||
"js-yaml": "^3.13.1",
|
"js-yaml": "^3.13.1",
|
||||||
|
|
|
@ -48,9 +48,10 @@ const DropdownListWidget = function (opts) {
|
||||||
};
|
};
|
||||||
|
|
||||||
const register_event_handlers = () => {
|
const register_event_handlers = () => {
|
||||||
$(`#${opts.container_id} .dropdown-list-body`).on("click keypress", ".list_item", function (
|
$(`#${opts.container_id} .dropdown-list-body`).on(
|
||||||
e,
|
"click keypress",
|
||||||
) {
|
".list_item",
|
||||||
|
function (e) {
|
||||||
const setting_elem = $(this).closest(`.${opts.widget_name}_setting`);
|
const setting_elem = $(this).closest(`.${opts.widget_name}_setting`);
|
||||||
if (e.type === "keypress") {
|
if (e.type === "keypress") {
|
||||||
if (e.which === 13) {
|
if (e.which === 13) {
|
||||||
|
@ -61,7 +62,8 @@ const DropdownListWidget = function (opts) {
|
||||||
}
|
}
|
||||||
const value = $(this).attr("data-value");
|
const value = $(this).attr("data-value");
|
||||||
update(value);
|
update(value);
|
||||||
});
|
},
|
||||||
|
);
|
||||||
$(`#${opts.container_id} .dropdown_list_reset_button`).on("click", (e) => {
|
$(`#${opts.container_id} .dropdown_list_reset_button`).on("click", (e) => {
|
||||||
update(opts.null_value);
|
update(opts.null_value);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
|
@ -126,15 +126,16 @@ $(() => {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
$(".register-page #email, .login-page-container #id_username").on("focusout keydown", function (
|
$(".register-page #email, .login-page-container #id_username").on(
|
||||||
e,
|
"focusout keydown",
|
||||||
) {
|
function (e) {
|
||||||
// check if it is the "focusout" or if it is a keydown, then check if
|
// check if it is the "focusout" or if it is a keydown, then check if
|
||||||
// the keycode was the one for "enter" (13).
|
// the keycode was the one for "enter" (13).
|
||||||
if (e.type === "focusout" || e.which === 13) {
|
if (e.type === "focusout" || e.which === 13) {
|
||||||
$(this).val($(this).val().trim());
|
$(this).val($(this).val().trim());
|
||||||
}
|
}
|
||||||
});
|
},
|
||||||
|
);
|
||||||
|
|
||||||
const show_subdomain_section = function (bool) {
|
const show_subdomain_section = function (bool) {
|
||||||
const action = bool ? "hide" : "show";
|
const action = bool ? "hide" : "show";
|
||||||
|
|
|
@ -43,4 +43,4 @@ API_FEATURE_LEVEL = 35
|
||||||
# historical commits sharing the same major version, in which case a
|
# historical commits sharing the same major version, in which case a
|
||||||
# minor version bump suffices.
|
# minor version bump suffices.
|
||||||
|
|
||||||
PROVISION_VERSION = '116.1'
|
PROVISION_VERSION = '117.0'
|
||||||
|
|
Loading…
Reference in New Issue