Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stream_create: Select the first enabled choice by default.
Sahil Batra988e9d2abc6b
diff --git a/static/js/stream_create.js b/static/js/stream_create.jsindex ebc87044cd6..c3b0ddd4345 100644--- a/static/js/stream_create.js+++ b/static/js/stream_create.js@@ -338,9 +338,10 @@ export function show_new_stream_modal() {html_selector: (user) => $(`#${CSS.escape("user_checkbox_" + user.user_id)}`),});+ // Select the first enabled choice for stream privacy.+ $("#make-invite-only input:not([disabled]):first").prop("checked", true);// Make the options default to the same each time:- // public, "announce stream" on.- $("#make-invite-only input:radio[value=public]").prop("checked", true);+ // "announce stream" on.$("#stream_creation_form .stream-message-retention-days-input").hide();$("#stream_creation_form select[name=stream_message_retention_setting]").val("realm_default");