Fix some bugs for changing stream privacy.

The function stream_data.add_admin_options() got removed as
part of a somewhat recent fix.  This caused a console error, and
the modal would not go away.

We now call the new stream_data.update_calculated_fields().

This commit only addresses the recent regression.  We still have
the known issue that public/private changes do not get
live-updated for other users.
This commit is contained in:
Steve Howell 2017-05-11 06:39:30 -07:00 committed by Tim Abbott
parent dc2a9a4c5b
commit a9031fe7b3
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ function redraw_privacy_related_stuff(sub_row, sub) {
var stream_settings = settings_for_sub(sub);
var html;
sub = stream_data.add_admin_options(sub);
stream_data.update_calculated_fields(sub);
html = templates.render('subscription_setting_icon', sub);
sub_row.find('.icon').expectOne().replaceWith($(html));