diff --git a/static/js/stream_create.js b/static/js/stream_create.js index 27c73c43ee..cf75a1bdf1 100644 --- a/static/js/stream_create.js +++ b/static/js/stream_create.js @@ -196,7 +196,7 @@ function create_stream() { data.history_public_to_subscribers = JSON.stringify(history_public_to_subscribers); const stream_post_policy = Number.parseInt( - $("#stream_creation_form input[name=stream-post-policy]:checked").val(), + $("#stream_creation_form select[name=stream-post-policy]").val(), 10, ); diff --git a/static/js/stream_edit.js b/static/js/stream_edit.js index dc7ccb9bc8..2a24731438 100644 --- a/static/js/stream_edit.js +++ b/static/js/stream_edit.js @@ -379,7 +379,7 @@ function change_stream_privacy(e) { const privacy_setting = $("#stream_privacy_modal input[name=privacy]:checked").val(); const stream_post_policy = Number.parseInt( - $("#stream_privacy_modal input[name=stream-post-policy]:checked").val(), + $("#stream_privacy_modal select[name=stream-post-policy]").val(), 10, ); diff --git a/static/templates/stream_settings/stream_types.hbs b/static/templates/stream_settings/stream_types.hbs index a8a63deadb..ab192e4d9f 100644 --- a/static/templates/stream_settings/stream_types.hbs +++ b/static/templates/stream_settings/stream_types.hbs @@ -25,17 +25,16 @@ {{/if}}