mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	dependencies: Upgrade JavaScript dependencies.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		@@ -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",
 | 
			
		||||
 
 | 
			
		||||
@@ -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();
 | 
			
		||||
 
 | 
			
		||||
@@ -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";
 | 
			
		||||
 
 | 
			
		||||
@@ -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'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user