create stream: Remove disabling announce stream, if all users checked.

Remove disabling announce stream option in stream creation,
if all users are checked to add into stream.
This commit is contained in:
YJDave
2017-12-29 15:32:24 +05:30
committed by showell
parent ae25f07c69
commit a870bb3cae

View File

@@ -129,8 +129,8 @@ function update_announce_stream_state() {
return;
}
// If the stream is invite only, or everyone's added, disable
// the "Announce stream" option. Otherwise enable it.
// If the stream is invite only, disable the "Announce stream" option.
// Otherwise enable it.
var announce_stream_checkbox = $('#announce-new-stream input');
var disable_it = false;
var is_invite_only = $('input:radio[name=privacy]:checked').val() === 'invite-only';
@@ -138,9 +138,6 @@ function update_announce_stream_state() {
if (is_invite_only) {
disable_it = true;
announce_stream_checkbox.prop('checked', false);
} else {
disable_it = $('#user-checkboxes input').length
=== $('#user-checkboxes input:checked').length;
}
announce_stream_checkbox.prop('disabled', disable_it);