mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 19:06:09 +00:00
dropdown_widget: Refactor to use Class.
This commit is contained in:
@@ -159,6 +159,8 @@ export function launch(conf: DialogWidgetConfig): void {
|
||||
if ($(this).is("input[type='file']") && $(this).prop("files")?.length) {
|
||||
// If the input is a file input and a file has been selected, set value to file object
|
||||
current_values[property_name] = $(this).prop("files")[0];
|
||||
} else if (property_name === "edit_bot_owner") {
|
||||
current_values[property_name] = $(this).find(".dropdown_widget_value").text();
|
||||
} else {
|
||||
current_values[property_name] = $(this).val();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user