mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 03:11:54 +00:00
Extract stream_create.create_handlers_for_users().
This commit is contained in:
@@ -271,8 +271,8 @@ exports.show_new_stream_modal = function () {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$(function () {
|
exports.create_handlers_for_users = function () {
|
||||||
$('body').on('change', '#user-checkboxes input, #make-invite-only input', update_announce_stream_state);
|
$('body').on('change', '#user-checkboxes input', update_announce_stream_state);
|
||||||
|
|
||||||
// 'Check all' and 'Uncheck all' visible users
|
// 'Check all' and 'Uncheck all' visible users
|
||||||
$(document).on('click', '.subs_set_all_users', function (e) {
|
$(document).on('click', '.subs_set_all_users', function (e) {
|
||||||
@@ -346,6 +346,13 @@ $(function () {
|
|||||||
update_announce_stream_state();
|
update_announce_stream_state();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
exports.create_handlers_for_users();
|
||||||
|
|
||||||
|
$('body').on('change', '#make-invite-only input', update_announce_stream_state);
|
||||||
|
|
||||||
$(".subscriptions").on("submit", "#stream_creation_form", function (e) {
|
$(".subscriptions").on("submit", "#stream_creation_form", function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|||||||
Reference in New Issue
Block a user