mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
subscriptions: Simplify the displaying of subs pane.
".stream-info-title" selector is used to hide both "#add_new_stream_title" and "#stream_settings_title" classes. This will be helpful when we add new html elements to display in the title area.. `clear_edit_panel` can be removed as the next line to where it is called makes it redundant, we only need to de-select the stream row, as done in this commit.
This commit is contained in:
@@ -235,14 +235,9 @@ function create_stream() {
|
||||
exports.new_stream_clicked = function (stream_name) {
|
||||
// this changes the tab switcher (settings/preview) which isn't necessary
|
||||
// to a add new stream title.
|
||||
$(".display-type #add_new_stream_title").show();
|
||||
$(".display-type #stream_settings_title").hide();
|
||||
|
||||
subs.show_subs_pane.create_stream();
|
||||
$(".stream-row.active").removeClass("active");
|
||||
|
||||
$("#stream_settings_title, .subscriptions-container .settings, .nothing-selected").hide();
|
||||
$("#stream-creation, #add_new_stream_title").show();
|
||||
|
||||
if (stream_name !== "") {
|
||||
$("#create_stream_name").val(stream_name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user